cURL / Mailing Lists / curl-library / Single Mail

curl-library

username+password

From: Adrian Mardare <amardare_at_qnx.com>
Date: Thu, 20 Jun 2002 15:31:32 -0400

Hi...
I'm trying to use libcurl to get a file form a site that requires a username and a password.
If I type the url in a browser ( like IE ), the IE knows to prompt me for the username + password.
Shouldn't the curl library ( or the curl command line tool ) do the same thing ?
It seems to me that CURLOPT_PASSWDFUNCTION callback should be invoked in this case and it should allow me to specify an username and a passwd. The curl library should be smart to detect when a authentication is required based on the url given and the response from server.
How can this be done?
Thanks,
Adrian

-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-20