Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Proxy server and Port  RSS feed

 
D A Smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!