cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLOPT_URL and CURLOPT_USERPASSWD

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Mar 2001 08:46:18 +0100 (MET)

On Wed, 28 Feb 2001, Frank Reid wrote:

> I think there's a bug in processing curl_easy_setopt() when
> CURLOPT_USERPWD is defined (along with CURLOPT_URL, which must be
> defined). In my code, it appears to use whichever of the last was passed
> to curl_easy_setopt() as the effective URL (and reports that). If I put
> USERPWD first, it tries to use that as the URL, and when I reverse the
> order and put URL first, it tries to authenticate Userid/Passwd using the
> URL.

Can you give me a short source code example that shows this behaviour? I've
never seen this and by reading the code I can't understand it either.

What curl version is this?

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2001-03-01