HTTP requests through proxy server
Hi to all. First of all, sorry for my English.
There is some strange behavior in my program related to HTTP requests through a proxy server. For testing purposes, I installed a proxy server (CCProxy) on localhost, and I want my program to access the Internet through it, so I set the system properties http.proxyPort and http.proxyHost.
If the proxy server is running everything is ok, as I can see in the log of the server that all the requests made by the program passes through the proxy, both GET and POST requests.
The problem appears when the proxy server is not running. POST requests fails (as expected) and appropiate exceptions are thrown, but GET requests don't fail, as I get the correct result from them.
Does anyone know why?