• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Proxy server and Port

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic