cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: libcurl in perl - username/password pop up box

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 22 Oct 2003 13:54:43 +0200 (CEST)

On Tue, 21 Oct 2003 Kenneth.Quan_at_wellsfargo.com wrote:

> I'm trying to use libcurl in perl to accomplish the following task, I was
> successful using command line curl the following way: basically it's a popup
> box with username and password. curl - u username:password
> http://proctected-url
>
> but in perl as a simple test, I get a 401 Unauthorized

If you set CURLOPT_VERBOSE true you'll get to see what headers libcurl sends
away, compare them to the ones the command line tool uses (with -v). Can you
see any differences?

Also, what libcurl version is this?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
Received on 2003-10-22