Attached is a testcase that makes a https connection thru a proxy
and is able to retrieve the html response using 1.3.1_09 with the
JSSE1.0.3 packages as seen below:
C:\Support\Towers>\jdk1.3.1_09\bin\java -cp .;jcert.jar;jnet.jar;jsse.jar ProxySSL set
Setting provider
<head><title>Document moved</title></head>
<body><h1>Document moved</h1>
This document has moved <a href="https://dbconnect.towersperrin.com/dbconnect/noclient.jsp?TYPE=33554433&TARGET=http://d
e2-1e81-ae63-83192e230000&GUID=">here</a>.<p>
</body>
When running with 1.4.2_02 a SocketException is thrown:
C:\Support\Towers>java ProxySSL set
Setting provider
Exception in thread "main" java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at ProxySSL.main(ProxySSL.java:18)
Is this a bug in 1.4? Any input would be appreciated. Included is the
javax.net.debug output.
Thanks,
Albert.