Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP !!! Java Exception : "HTTP/1.1 302 Moved Temporarily" Unable to tunnel through proxy

144 views
Skip to first unread message

Holger Topmöller

unread,
Nov 27, 2002, 7:52:06 AM11/27/02
to
Hi,

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)

0 new messages