Hi,

I encounter troubles trying to connect to a web site from behind a
proxy (128.0.0.26:8080) with my code using:

try
{
        URL url = new URL("http://www.mysite.com/test.xml";);
        InputSource source = new InputSource(url.openStream());
        // do something with the retrieved XML data...
}
catch(Exception e)
{
        Log.e(e.getMessage());
}

Launching the emulator through Eclipse with the command line options -
http-proxy 128.0.0.26:8080 or directly from the command line:
emulator @myavd1_5 -http-proxy 128.0.0.26:8080

I set the proxy options in the emulator as follows:
MENU -> Settings -> Wireless controls -> Mobile Network -> Access
Point Names -> T-Mobile US -> Proxy (128.0.0.26) and Port (8080).

All I get is:
Unknown host http://www.mysite.com, throwing UnknownHostException
Host is unresolved: www.mysite.com:80

Note if I launch the Browser in the emulator it tries to connect
automagically to www.google.com but fails saying:
Timeout waiting to connect to the web site.

But if I click on the emulator's MENU button and choose Go using
www.google.com or http://www.mysite.com/test.xml it works perfectly.

All firewalls and antivirus softwares have been disabled on my machine
and the proxy server that are both running Windows XP SP3.

I try forcing the DNS with the -dns-server command line option but
without any success either even when using OpenDNS DNS (208.67.222.222
and 220).

Did I miss something ?
Any helps would be greatly appreciated !

Regards,
Gg.

-- 
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