cURL / Mailing Lists / curl-library / Single Mail


Re: Can't get a page using HTTPS

From: Terry Stebbens <>
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.


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
> 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
> 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