Hey,
Ich erstelle grad ein Programm wo ich per Https Verbindung mit ner Homepage Kommuniziere, diese Verbindung würde ich jetzt aber gerne durch einen Proxy laufen lassen weil die Website Captchas prüft nach dem 1. mal Erstellen eines Accounts. Hat jemand eine Idee was am folgendem Code falsch ist?
Hab jetzt schon viele Proxys probiert, auch Https Proxy.. aber nichts scheint so wirklich zu funktionieren
Code:
{
[...]
URL url = new URL(register_url);
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxy_ip, proxy_port));
HttpsURLConnection WoWSetup = (HttpsURLConnection)url.openConnection(proxy);
[...]
Es kommt folgende Fehlermeldung
Code:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown
Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Un
known Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Sou
rce)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Sou
rce)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unk
nown Source)
wenn ich einen Http Proxy nutze, is ja klar.. man kann ja normal kein Https durch Http durchschleifen, aber Https Proxys funktionieren leider auch nicht nur das dann Connection Refused kommt als ob der Proxy down wär.. ist er aber nicht (mehrere getestet -> vorher mit Proxychecker kontrolliert ob sieon sind).. bin da langsam echt überfragt - jemand ne Idee?
p.s: Nochmal die Meldung ->
Quote:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net. Source)
at sun.net.www.http.HttpClient$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net. Source) at sun.net. Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
at sun.net. Source) at sun.net.
ttpClient(Unknown Source)
at sun.net. Sour
ce)
at sun.net.
(Unknown Source)
at sun.net. S
ource)
at sun.net.
nown Source)
at *****(****.java:38)
at *****(****.java:16)
|