curl-library
authentification at Host and "passwdgiven"
Date: Mon, 01 Sep 2003 18:38:04 +0200
Hi all
I have no server to check the following against.
But from browsing through the source code I suppose that without the
following patch
CURLOPT_USERPWD set to ":password" would be the same as option set with "".
diff -u url-org.c url.c
--- url-org.c Thu Aug 14 16:20:02 2003
+++ url.c Mon Sep 1 18:28:50 2003
@@ -2776,9 +2776,11 @@
/* a colon means the password was given, even if blank */
passwdgiven = TRUE;
}
- else
+ else {
/* no name given, starts with a colon, get the password only */
sscanf(data->set.userpwd+1, "%127[^\n]", passwd);
+ passwdgiven = TRUE;
+ }
}
if ((data->set.use_netrc != CURL_NETRC_IGNORED) &&
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-01