You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Maneesh Sharma <Ma...@sun.com> on 2003/01/20 06:55:41 UTC
SSL
Hi,
Is there any example for using SSL with HTTPClient?
TIA
regards
Maneesh
Re: SSL
Posted by Maneesh Sharma <Ma...@sun.com>.
Hi Ortwin
Its fixed!...I took latest cvs build ant the problem doesnt occur anymore.
Thanks
regards
Maneesh
Ortwin Glück wrote:
> Aaron Bonner wrote:
>
>> This I believe was due to a bug (I got bitten by it with https) that has
>> been fixed in the latest cvs build. Grab the latest source
>> distribution and
>> run ant on it. See if that fixes the problem.
>>
>> Good Luck,
>> Aaron.
>
>
> Note that I checked in the aleged bug fix. But I could not test it due
> to lack of a proxy server.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
Re: SSL
Posted by Ortwin Glück <or...@nose.ch>.
Aaron Bonner wrote:
> This I believe was due to a bug (I got bitten by it with https) that has
> been fixed in the latest cvs build. Grab the latest source distribution and
> run ant on it. See if that fixes the problem.
>
> Good Luck,
> Aaron.
Note that I checked in the aleged bug fix. But I could not test it due
to lack of a proxy server.
Re: SSL
Posted by Aaron Bonner <aj...@netspace.net.au>.
This I believe was due to a bug (I got bitten by it with https) that has
been fixed in the latest cvs build. Grab the latest source distribution and
run ant on it. See if that fixes the problem.
Good Luck,
Aaron.
----- Original Message -----
From: "Maneesh Sharma" <Ma...@sun.com>
To: "Commons HttpClient Project" <co...@jakarta.apache.org>
Sent: Tuesday, January 21, 2003 4:00 PM
Subject: Re: SSL
> 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.ja
va: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:
> >> <ma...@jakarta.apache.org>
> >> For additional commands, e-mail:
> >> <ma...@jakarta.apache.org>
> >>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
Re: SSL
Posted by Maneesh Sharma <Ma...@sun.com>.
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:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
Re: SSL
Posted by Michael Becke <be...@u.washington.edu>.
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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>