With the adequate proxy settings filled in. The problem here is that the proxy settings are set from a file called Proxy.xml. Before my http request executes, the file Proxy.xml is opened and the details for proxyHost and proxyPort are read and filled in automatically.
But if during the session (ie, while tomcat is running) , the file Proxy.xml is altered in some way, maybe the proxyHost is changed to a different and incorrect IP, the program still works , unless I restart tomcat.
My question is, How do I unset these proxy settings totally from my tomcat server or jsp file once a certain line of code is executed? i.e, is there a System.unsetProperty or equivalent.