cURL / Mailing Lists / curl-users / Single Mail

curl-users

CURLOPT_URL and CURLOPT_USERPASSWD

From: Frank Reid <fcreid_at_ourcorner.org>
Date: Wed, 28 Feb 2001 23:06:10 -0500

Daniel,

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.

Frank
Received on 2001-03-01