when i try to send a HTTPS-Request through a Proxyserver, i get an
exception and don't know, what i do wrong.
SSL works correkt (in my java-application and on my webserver).
Things like
System.getProperties().put("https.proxyHost",host);
System.getProperties().put("https.proxyPort",port);
System.getProperties().put("https.proxySet","true");
and
/* Object 'encoded' contains a Base64 encoded String (HOSTNAME +
':' + PORT); 'connection' is an HttpsURLConnection-Objekt */
connection.setRequestProperty("Proxy-Authorization", "Basic " +
encoded);
are part of my code.
I hope, that someone can help me or can give me a hint.
Greetings from Muenster/Germany
Holger
=====================================================================
This is the mentioned exception :
java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.1 302 Moved Temporarily"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:813)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:528)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(DashoA6275)
at de.gad.hbci.testtool.work.HbciSocket.sendHttpRequest(HbciSocket.java:394)
at de.gad.hbci.testtool.work.HbciSocket.run(HbciSocket.java:65)