On Mon, 2011-01-10 at 18:00 -0500, David Motes wrote:
> I seem to be missing something. I am trying to use this sample code
> from the doc to access a proxy without
> configuring the proxy parms.
> 
> One can also instruct HttpClient to use standard JRE proxy selector to
> obtain proxy information:
> DefaultHttpClient httpclient = new DefaultHttpClient();
> ProxySelectorRoutePlanner routePlanner = new ProxySelectorRoutePlanner(
>         httpclient.getConnectionManager().getSchemeRegistry(),
>         ProxySelector.getDefault());
> httpclient.setRoutePlanner(routePlanner);
> 
> My program is not an applet, it will eventually be a web start application.
> The url is https.
> I set up the default browser to use a proxy, then set the Java config
> to use a proxy and my application will
> not use the proxy.
> Is there some other configuration or some other code that I need? Is
> it the SSL?
> Do I not understand what ProxySelectorRoutePlanner does?
> 
> Thanks.
> 

David

My understanding is that ProxySelector gets pre-configured by the Applet
container based on the settings of the host browser, but one still needs
to configure ProxySelector using system properties when running in a
normal JSE environment. 

http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html

Hope this helps

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to