hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maneesh Sharma <Maneesh.sha...@sun.com>
Subject Re: SSL
Date Tue, 21 Jan 2003 05:30:33 GMT
Thanks
When I try to do an SSL connection through a proxy i get the following 
error:
 FAIL https://www.verisign.com/products/index.html
 java.lang.IllegalStateException: Already using a secure socket
    at 
org.apache.commons.httpclient.HttpConnection.tunnelCreated(HttpConnection.java:496)
    at 
org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.java:118)
    at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:556)
    at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:473)
    at ProxyAdmin.dispatch(ProxyAdmin.java:822)
    at ProxyAdmin.execute(ProxyAdmin.java:577)
    at org.apache.tools.ant.Task.perform(Task.java:319)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:319)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    at org.apache.tools.ant.Main.runBuild(Main.java:610)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
What could be the problem?
Thanks
regards
Maneesh.
Michael Becke wrote:

> Not much needs to be done to use SSL with HttpClient.  If you are 
> using  a 1.4 JRE SSL support is built in.  If not you will need to 
> have JSSE  on your classpath.
>
> Below is a link to an example that uses HTTP basic authentication 
> over  SSL.
>
> http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/ 
> BasicAuthenticatonExample.java?rev=1.2&content-type=text/vnd.viewcvs- 
> markup
>
> Mike
>
> On Monday, January 20, 2003, at 12:55 AM, Maneesh Sharma wrote:
>
>> Hi,
>> Is there any example for using SSL with HTTPClient?
>> TIA
>> regards
>> Maneesh
>>
>>
>> -- 
>> To unsubscribe, e-mail:    
>> <mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:  
>> <mailto:commons-httpclient-dev-help@jakarta.apache.org>
>>
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:commons-httpclient-dev-help@jakarta.apache.org>
>



Mime
View raw message