commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Bonner" <>
Subject [httpclient] Proxied HTTPS
Date Fri, 10 Jan 2003 01:42:28 GMT
Hi, I've run into a problem attempting to execute methods through https while using a proxy.

I'm using the nightly built binary

Easiest way to reproduce the problem is to edit the file that comes with the
HttpClient SRC distribution. Simply add the line
hc.setProxy("", proxyIntegerPortNumber);

Then attempt to load some

I get the following exception both in my code, and in TrivialApp

Exception in thread "main" java.lang.IllegalStateException: Already using a secure socket
        at org.apache.commons.httpclient.HttpConnection.tunnelCreated(
        at org.apache.commons.httpclient.ConnectMethod.execute(
        at org.apache.commons.httpclient.HttpClient.executeMethod(
        at org.apache.commons.httpclient.HttpClient.executeMethod(
        at TrivialApp.main(

If I attempt to load a standard http page, all works fine.

Im running this code on a Redhat 7.3, j2sdk 1.4.1 machine.

Any help or thoughts would be greatly appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message