On Thu, Jun 17, 2010 at 3:29 PM, Anu Tripathi <[email protected]> wrote:
>  I'm trying to intercept all the http/https requests from android 2.1
> sdk emulator (specifically interested in request from our app ) using
> fiddler. I have fiddler running on the same machine where emulator is
> running.
>
> I followed the sql query instruction (adb shell ....)
>  I restarted emulator with below command
>
> emulator -avd <emulator name> -http-proxy http://127.0.0.1:8080
>
> but I still don't see anything in fiddler, even when I go to google
> from browser in emulator.
>
> If someone is able to view all the http connection from their android
> emulator ( even if not through fiddler but some other tool) please
> reply with instructions.

I don't know about fiddler, but to have HttpClient's requests route
through a proxy:

Properties systemSettings=System.getProperties();

systemSettings.put("http.proxyHost", "your.proxy.host.here");
systemSettings.put("http.proxyPort", "8080"); // use actual proxy port

-- 
Mark Murphy
CommonsWare
[email protected]
http://commonsware.com

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to