curl-and-php
HTTP Basic auth (was Re: debugging PHP-CURL code)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Nov 2005 12:30:48 +0100 (CET)
Date: Wed, 23 Nov 2005 12:30:48 +0100 (CET)
On Wed, 23 Nov 2005, Emmanuel Forgues wrote:
> My appologies, it's not link to Callback. It's another problem.
Then please don't reply to a thread about something else and please use a
descriptive subject for your new thread.
Set CURLOPT_USERPWD to "username:password" and you'll get Basic authentication
when using a HTTP URL.
You can optionally change Basic method to another one by using the
CURLOPT_HTTPAUTH option.
If anyone has a littl example showing these options in action, then please
send it my way!
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2005-11-23