curl-users
please help: password protected pages
Date: Thu, 31 Aug 2000 11:57:30 -0500
hi
I am having problems accessing a password protected web page using the curl
library.
Using curl executable : I can access the page fine by the following command:
curl http://mywebpage.com/cgi-bin/myfile.html -u
login:password
But when I write my own program, it returns the message "Authorization
required......".
My function call is as follows:
res = curl_urlget(
URGTAG_FILE, stderr,
URGTAG_URL, "http://mywebpage.com/cgi-bin/myfile.html",
URGTAG_WRITEFUNCTION, resultHandler,
URGTAG_ERRORBUFFER, errorbuffer,
URGTAG_TIMEOUT, ltimeout,
URGTAG_FLAGS, CONF_DEFAULT,
URGTAG_USERPWD, "login:password",
URGTAG_DONE);
Any help will be very much appreciated.
Thanx
Ashraf
Received on 2000-08-31