cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Basic Authentication from command-line cURL

From: Bill Mercer <bmerc_at_nccer.org>
Date: Wed, 20 Jul 2005 15:23:36 -0400

>it doesn't work at all. it always gives me an error
>message '401.2 - Unauthorized'.

Eh? If your credentials don't work when you use a browser, then you
shouldn't expect them to work with curl.
First you need to have working credentials that let you log into the
site successfully with a browser. You need to fix that first.

>>>> law_rent_at_yahoo.com 07/20/05 02:56PM >>>
>
>since it doesn't work from PHP, so i tried it from
>command line, hoping it might work.
>
>so, whenever i send a plaintext username & password,
>curl will encrypt them (not fully encryption) using
>base64 function, as mentiod by ignacio, right?
>
>i'm really confused 8-(. i've been working on this too
>long....
>
>any help???
>
>thanks !
>
>laurent
>
>--- Dan Fandrich <dan_at_coneharvesters.com> wrote:
>
>> On Wed, Jul 20, 2005 at 09:28:41AM -0700, pURbA
>> wrote:
>> > thanx 4 ur reply, man.
>> >
>> > i did try it using browser. this is my code:
>>
>> So, what did the browser send when it worked? How
>> does that differ from what
>> your code sends?
>>
>> >>> Dan
>> --
>> http://www.MoveAnnouncer.com The web
>> change of address service
>> Let webmasters know that your web site has
>> moved
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com

Cheers,

Bill Mercer - National Center for Construction Education and Research
3600 NW 43rd St
Gainesville, Florida 32606
http://www.nccer.org
Phone 352-334-0911 Fax 352-334-0932
=============================================

                                       
Received on 2005-07-20