I need to debug all outgoing requests from WebView and find as much as possible ( request headers, POST/PUT parameters, etc. ). I need to load the traffic data in Java, therefore Firebug is not a solution.
In other words I want to monitor the complete outgoing activity and get as much information as possible. In special when is related to some user interaction ( pressing a button, link, etc. ). I am building a Web testing platform and I need to track the HttpRequests created in WebView and get data in Java.
Possible solutions I was thinking on :
- After the page is loaded run a JavaScript which listen to the requests and pass the data through shared objects between WebView and Java ( https://gist.github.com/lczx/268eb7cd7b079af1bd17 )
- Create a Proxy
- Manupulate some URL or Java objects