cURL / Mailing Lists / curl-library / Single Mail



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

Some clarification:
I know about the 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?

----- Original Message -----
From: Adrian Mardare
Sent: Thursday, June 20, 2002 3:31 PM
Subject: username+password

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?

Sponsored by:
ThinkGeek at
Received on 2002-06-20