curl-users
Re: http authentication is not working..
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Dec 2009 20:19:19 +0100 (CET)
Date: Thu, 10 Dec 2009 20:19:19 +0100 (CET)
On Wed, 9 Dec 2009, Michael March wrote:
> lappy:HUDSON mmarch$ curl -u foo-user:bar-pass https://addressbook.acme.com
>
> <title>401 Authorization Required</title>
Use LiveHTTPHeaders, record what your Firefox sends. Then compare that exact
header with what curl sends. Basic auth is simply user+password base64-encoded
so they should be identical.
And if they're not, just base64-decode them both and see what they sent and
then adapt.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-12-10