I'm trying to pass in a secure URL (<https://localhost:7002/mysite>) for an SSL enabled site and continue to get UnknownHostException's. I pointed my test to a newer httpunit.jar and still the same problem which appears to lie within the HttpWebResponse.readResponseHeader method at the following lines:
if (!needStatusWorkaround()) {
_responseCode = connection.getResponseCode();
_responseMessage = connection.getResponseMessage();
} else {
if (connection.getHeaderField(0) == null) throw new UnknownHostException( connection.getURL().toExternalForm() );
Is there a known workaround to this problem?
jason
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to pass in a secure URL (<https://localhost:7002/mysite>) for an SSL enabled site and continue to get UnknownHostException's. I pointed my test to a newer httpunit.jar and still the same problem which appears to lie within the HttpWebResponse.readResponseHeader method at the following lines:
if (!needStatusWorkaround()) {
_responseCode = connection.getResponseCode();
_responseMessage = connection.getResponseMessage();
} else {
if (connection.getHeaderField(0) == null) throw new UnknownHostException( connection.getURL().toExternalForm() );
Is there a known workaround to this problem?
jason
Jason,
I was wondering if you found a solution to the problem you posted. I ran into the same problem.
Thanks,
Hien