[xSocket-develop] Connecting to web-server through Proxy using xsocket
Status: Inactive
Brought to you by:
grro
|
From: Simon S. (spamato.net) <si...@sp...> - 2008-06-06 11:34:16
|
Hey all,
I have the following problem:
I want to connect to a webserver using the following snippet:
IHttpClientEndpoint httpClientConnection = new
HttpClientConnection("www.google.com", 80);
HttpRequest httpRequest= new GetRequest(query);
HttpResponse response = httpClientConnection.call(httpRequest);
The snippet hangs on the first line already - probably because I am
behind a web-proxy.
The exception:
java.net.ConnectException: java.net.NoRouteToHostException: No route
to host: no further information
Setting the respective System Properties
-Dhttp.proxyHost=myproxy.xyz.com -Dhttp.proxyPort=3128
doesn't help.
Am I doing something wrong or is this a problem with xsocket?
Thanks for your help,
Simon
|