Hi Guys,

I'm facing an issue of proxy not getting bypassed for local addresses that I
use to access server rest api's. Here is the description of the scenario.

I have a server with Rest api's running locally on port 8006. I'm using
Restlet client (HttpClientHelper) connector to access the services. Client
machines access internet through a proxy server.

When the application initialized, I read the proxy settings automatically
and set it as displayed below:

client.getContext().getParameters().add("proxyHost",
proxySelector.getHostname());
client.getContext().getParameters().add("proxyPort",
Integer.toString(proxySelector.getPort()));

I also set the system proxy to bypass proxy for local calls as displayed
below:

System.setProperty("nonProxyHosts", "localhost|127.0.0.1");
 
But, calls to http://localhost:8006 still goes through the proxy. I debugged
it further and found that 
*org.restlet.ext.httpclient.HttpClientHelper* has no code to read this
system property and enable the calls to use this.

I'm stuck on this. Can somebody throw some light on how to make
HttpClientHelper read this system property to bypass the proxy while
accessing local server?

Thanks in advance.





--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Problem-ignoring-local-addresses-when-calling-restlet-webservices-using-HtpClientConnector-Ext-packa-tp6964835p6964835.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2874511

Reply via email to