cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question about CURLOPT_HTTPAUTH

From: James Gallagher <jgallagher_at_gso.uri.edu>
Date: 28 Jul 2003 18:40:10 -0700

On Mon, 2003-07-28 at 15:58, Daniel Stenberg wrote:
> On Tue, 28 Jul 2003, James Gallagher wrote:
>
> > > What headers do you get back in the first response?
> >
> > Here's the first response, where HTTPAUTH is set to
> > CURLAUTH_DIGEST|CURLAUTH_BASIC:
> >
> > * About to connect() to comet.dods.org:80
> > * Connected to comet.dods.org (192.168.1.4) port 80
> > > GET /secure-3.4/nph-dods/version HTTP/1.1
> > Host: comet.dods.org
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
> > Accept-Encoding: deflate
> > User-Agent: DODS DAP++/3.4.0
> > Accept-Encoding: deflate
> >
> > * The requested URL returned error: 401
> > * Connection #0 left intact
> > The requested URL returned error: 401
> > * Closing connection #0
>
> Ah, are you by any change setting CURLOPT_FAILONERROR to TRUE on this
> connection?

Yup. That fixes the problem. I had to change my server configuration a
bit, but it works like a champ. Thanks!

James
>
> It seems libcurl doesn't like that in combination with some of these new
> authentication uses. I'll need to reconsider how that check should be done to
> work better...
>
> Switch off the CURLOPT_FAILONERROR and it might work better. :-)

-- 
__________________________________________________________________________
James Gallagher		         The Distributed Oceanographic Data System
jgallagher@gso.uri.edu               http://unidata.ucar.edu/packages/dods
Voice: 775.337.8612					 Fax: 775.337.2105
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-07-29