You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "MacDonald, Rindress" <RM...@enterasys.com> on 2004/10/28 19:28:55 UTC
RE: [HttpClient 3.0alpha2] Trouble with Basic authentication overSSL through a proxy.
I've also tried to use HttpsURLConnection and I'm getting the following:
java.net.ProtocolException: Server redirected too many times (20)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.ge
tInputStream(Unknown Source)
at URLReader.readFile(URLReader.java:61)
at URLReader.main(URLReader.java:461)
tmp *server redirected too many times (20)*
Just thought that might be of interest to you.
I'll try using HttpState, however; due to the above problem I don't
believe it will make any difference.
Thanks,
Rindress
BTW I've attached the code with the HttpsURLConnection implementation.
Removing the sensitive info of course ;-)
-----Original Message-----
From: Oleg Kalnichevski [mailto:olegk@apache.org]
Sent: Thursday, October 28, 2004 1:23 PM
To: httpclient-dev@jakarta.apache.org
Subject: Re: [HttpClient 3.0alpha2] Trouble with Basic authentication
overSSL through a proxy.
Rindress,
This is clearly a bug in HttpClient 3.0. I'll see if I can reproduce the
problem locally and get it fixed. Meanwhile, could you please test the
same code in a non-interactive mode (that is, using HttpState)?
Oleg
On Thu, 2004-10-28 at 17:20, MacDonald, Rindress wrote:
> Hi,
> I am having a problem trying to retrieve a file over SSL through a
proxy
> server. The proxy server does not need authentication and the end web
> server is using Basic authentication. I've attached the
> InteractiveAuthenticationExample.java and a wire trace of the problem.
>
> If I connect to the end server and supply valid credentials then
> everything works fine. However; if I specify invalid username and/or
> password I see the 401 coming back from the server but I never get
> prompted to enter the credentials again.
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
> Rindress MacDonald
>
>
>
>
> ______________________________________________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
httpclient-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org