curl-library
Re: Basic authentication with curl-7.15.1
Date: Tue, 14 Mar 2006 13:19:26 +0100 (CET)
On Tue, 14 Mar 2006, Rathi, Dinesh wrote:
> I am using libcurl 7.15.1 on windows and linux 64 and having some
> problem with basic authentication, sometime it goes fine and sometimes it
> gives 401 errors. I am sending a post request and not setting the
> authentication detail with first request, if I get 401 response code then
> only I set username/ password. I use the same curl handle for both calls.
> Sometimes it works and sometime it does not, any clue what could be wrong?
Can you please show us a lot more details, such as headers and what user name
+ password pairs that make a correct authentication and a few pairs that
don't? Also, you can compare the auth headers with the ones sent by your
favourite browser to verify that libcurl sends the same set.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-03-14