After setting both the http.proxyHost and http.proxyPort values in the system properties, if I change them the system lists the new ones properly, but does not use them properly. How can I make sure that new connections are made using the updated values? Example: I access site A using the first proxy setting. I get a result showing the IP of the first proxy server. I change the proxy settings within the program and access site A again. The program says that the new proxy settings are being used. I still get a result showing the IP of the first proxy server.
Peter den Haan
posted 14 years ago
It doesn't seem to be documented (not that I can see anyway) but it would appear that the values in http.proxy* are read when the http protocol handler classes load. Which would mean that you'll either have to live with a JVM restart, or with using your own HTTP client library (try http://www.freshmeat.net). - Peter [ May 20, 2002: Message edited by: Peter den Haan ]