curl-and-php
Re: HTTP Basic auth (was Re: debugging PHP-CURL code)
Date: Wed, 23 Nov 2005 08:58:30 -0800
The example I posted yesterday and the day before has
CURLOPT_USERPWD in it. Obviously I have the uid/pw x'd out but it's
really simple. If you give it a valid ht domain userid/password then
you can get the page. That was never the issue with my script. And I
have since solved the issue I was having
with that script. even though nobody on this list responded to my
email.
On Wed, 2005-11-23 at 12:30 +0100, Daniel Stenberg wrote:
> 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!
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-23