I had tried -http-proxy before without success. My command line:
Emulator -avd Android201 -debug-proxy -http-proxy 
http://<uid>:<pwd>@10.0.6.251:3128

Initial startup console messages:
proxy_http_setup: creating http proxy service connecting to:
10.0.6.251:3128
server name '10.0.6.251' resolved to 10.0.6.251:3128
proxy_http_setup: creating HTTP Proxy Service Footer is (len=55):
'Proxy-authorization: Basic <Base64UidPwd>

If I open a link to a GOOD connection inside the firewall, I see:
http_service_connect: trying to connect to 10.10.0.252:80
http_service_connect: using HTTP rewriter
tcp:10.10.0.252:80(1416): cannot connect to proxy: <unknown error>
adb logcat doesn't show any unusual messages.

If I do a BAD connection (e.g. google), I don't see any console
messages?
adb logcat shows:
E/browser (  192): onReceivedError -2 http://www.google.com/ The URL
could not be found.

again, my Android 1.6 emulator works with the APN settings and didn't
honor the -http-proxy setting.
On Dec 4, 8:10 pm, David Turner <[email protected]> wrote:
> Try using the -http-proxy <proxy> option when starting the emulator.
> This implements a transparent HTTP proxy that doesn't need modifying
> settings in the emulated system at all.
> It used to be buggy in previous releases of the emulator (mainly when used
> with MS proxy servers) but this should
> have been fixed in the latest SDK Tools release.
>
> If this still doesn't work, try to use -debug-proxy as well, this will dump
> the proxied traffic, and send it here so I can
> have a look at it.
>
> Also see -help-proxy for details about the <proxy> parameter.
>
> Hope this helps.
>
> On Fri, Dec 4, 2009 at 10:19 AM, Clark Hunter <[email protected]> wrote:
> > This link has some suggestions for proxy setting for early (pre-1.5)
> > and later (1.5 thru 1.6) Android emulators:
>
> >http://www.coderanch.com/t/462906/Android/Mobile/connect-internet-beh...
>
> > Basically, the older emulator used a “com.android.provider.setting.db”
> > database or -http-proxy command line switch to set proxy/port/userid/
> > password.
>
> > Android 1.5 and 1.6 used:  Home->Menu->Settings->WirelessControls-
> > >MobileNetworks->Access Point Names to set multiple proxy/port/userid/
> > password configurations.
> > My 1.6 emulator is working behind our corporate firewall/proxy.
>
> > Android 2.0 has some issue where the APN didn't display.
> > I used sqlite3 /data/data/com.android.providers.telephony/databases/
> > telephony.db to manually set fields and make the entries editable
> > (current=1).
> > I could access local servers, but not get thru the firewall?
>
> > Android 2.0.1 shows the APN with a default 'TelKila' entry. I can add
> > my proxy information, but still can't get past the firewall (shows Web
> > page not available)?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to