dcsimg
Autoconfiguration Script for Proxy
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Miqdad_Mohammed
Posted On:   Thursday, April 21, 2005 09:46 AM

Is it possible to use an Autoconfiguration script for a proxy in a java program.

I know for manual configuration it is
Properties props = System.getProperties();
props.put("http.proxyHost", "host");
props.put("http.proxyPort", "port");

but if you just have the configuration script, is it possible to do it that way?

Re: Autoconfiguration Script for Proxy

Posted By:   Stephen_Ostermiller  
Posted On:   Sunday, April 24, 2005 04:33 PM

I'm not aware of any http libraries for java that accept an auto-proxy-configuration script. In theory it wouldn't be that hard to write one by integrating the rhino javascript engine for java with some existing http library for java.

Re: Autoconfiguration Script for Proxy

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, April 23, 2005 11:35 PM

The autoconfig script is probably just Javascript. Try doing a "save link as file" on the url for it, and see if you can read what it says.
About | Sitemap | Contact