A
Alex Molochnikov
Hello everyone,
Our program connects to the License Generator (the Java-based server running
on our website host) via URLConnection like this:
String _url = "http://gestalt.com/license/";
URL url = new URL(_url);
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
At the server end, Apache server receives the HTTP request and redirects it
to the License Generator which then responds with the appropriate content.
It always worked, but recently someone complained that the connection,
originating from his laptop, cannot go through the proxy server that his
laptop connects to. Unfortunately, I could not get any detail on this
incident, but it left me wondering: what could possibly go wrong with the
connection?
Should I have used HttpURLConnection class instead? And, for this matter,
when would one use HttpURLConnection over URLConnection ?
TIA
Alex Molochnikov
Gestalt Corporation
www.gestalt.com
Our program connects to the License Generator (the Java-based server running
on our website host) via URLConnection like this:
String _url = "http://gestalt.com/license/";
URL url = new URL(_url);
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
At the server end, Apache server receives the HTTP request and redirects it
to the License Generator which then responds with the appropriate content.
It always worked, but recently someone complained that the connection,
originating from his laptop, cannot go through the proxy server that his
laptop connects to. Unfortunately, I could not get any detail on this
incident, but it left me wondering: what could possibly go wrong with the
connection?
Should I have used HttpURLConnection class instead? And, for this matter,
when would one use HttpURLConnection over URLConnection ?
TIA
Alex Molochnikov
Gestalt Corporation
www.gestalt.com