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

HttpsURLConnection with Proxy-Authorization

21 views
Skip to first unread message

Ulrich Schonhardt

unread,
Mar 7, 2002, 5:08:36 AM3/7/02
to
Hello all,

I'm using J2SDK V1.4. I want to HTTP-POST and -GET over an
HttpsURLConnection. I've set -Dhttps.proxyHost and Port, so that
Java is trying to tunnel thru the Proxy (it's M$ ISA Proxy, urrk!)

I used .setRequestProperty("Proxy-Authorization", "Basic
bas64encstuff")
because Proxy-Server wants Proxy-Authentication.
I get the exception:

Is that an internal Java bug or a missing feature from Java JSSE?

Any help would be greatly appreciated!

Ulrich

---------------------
resultString: null
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:232)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:762)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:510)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6275)
at voycli.VoyagerClient.secureHttpBeam(VoyagerClient.java:842)
at voycli.VoyagerClient.secureHttpBeam(VoyagerClient.java:759)
at voyorder.logon.LogonPanel$11.construct(LogonPanel.java:478)
at com.debis.sheka.DshThreadWorker$2.run(DshThreadWorker.java:249)
at java.lang.Thread.run(Thread.java:536)
java.lang.NullPointerException
at voyorder.logon.LogonPanel$11.construct(LogonPanel.java:483)
at com.debis.sheka.DshThreadWorker$2.run(DshThreadWorker.java:249)
at java.lang.Thread.run(Thread.java:536)

0 new messages