cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can't get a page using HTTPS

From: Terry Stebbens <STEBBENS_at_uk.ibm.com>
Date: Thu, 5 May 2005 16:32:14 +0100

Oops! I wasn't reading the header properly. The WWW-Authenticate header was
asking for Basic authentication and I'd set CURLAUTH_ANYSAFE. As soon as I
changed it to CURLAUTH_ANY and used your technique of repeating the request
everything worked!

Thanks for the help.

Cheers,

Terry Stebbens.

> Well, I tried making the request without the user:pwd and then with it
> after I got the WWW-Authenticate header but I still got the same
response.
>
> I think I may try seeing what my browser is sending/receiving and compare
> that to what libcurl is sending and receiving and see if I can work it
out
> from there.
>
> Cheers,
>
> Terry Stebbens.
>
> > Did you try simply repeating the page send??
> >
> > I've had a situation before where the server didn't accept the
> > user:pwd until *after* it had sent out the WWW-Authenticate header. I
> > had to hit the page without the userpwd, then repeat with the userpwd.
> >
> > Ralph Mitchell
> >
> >
Received on 2005-05-05