cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

username+password

From: Adrian Mardare <amardare_at_qnx.com>
Date: Thu, 20 Jun 2002 17:49:40 -0400

Hi...
Some clarification:
I know about the http://user:passwd@some.com sintax.
I was asking if curl can do this:
I pass an url ( with no username/passwd information ) using the CURLOPT_URL and I don't know if a username/passwd is required.
If the url can be extracted without any authentication form the server - then that's ok.
If the server requires an authentication, then the curl/ curl library should prompt for a callback.
Is this possible?
Thanks,
Adrian

----- Original Message -----
From: Adrian Mardare
To: curl-library_at_lists.sourceforge.net
Sent: Thursday, June 20, 2002 3:31 PM
Subject: username+password

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET