I'm using curl, my information line is... libcurl/7.10.5 OpenSSL/0.9.7b zlib/1.1.4
I'm trying to cURL into an ASP page which requires authentication... if I open the page in IE it doesn't say a word, if I open it in Firefox i get asked for username password.
The relevant headers returned from an HTTP request are
I have a different commandline version of curl (7.10.4 I believe, but am not certain), if I run
It returns the page just fine ... but this is on my development machine, not the webserver... I've tried
With no luck, 401 - Unauthorized: Logon Failed.... does anyone see anything I may be missing? Is there a specific curlopt I haven't set that I need to?
I'm trying to cURL into an ASP page which requires authentication... if I open the page in IE it doesn't say a word, if I open it in Firefox i get asked for username password.
The relevant headers returned from an HTTP request are
Code:
[URL unfurl="true"]WWW-Authenticate:[/URL] Negotiate
[URL unfurl="true"]WWW-Authenticate:[/URL] NTLM
[URL unfurl="true"]WWW-Authenticate:[/URL] Basic realm = "777.77.7.777"
I have a different commandline version of curl (7.10.4 I believe, but am not certain), if I run
Code:
curl -l -anyauth -u <domain>\<name>:<pwd> <website>
It returns the page just fine ... but this is on my development machine, not the webserver... I've tried
Code:
$ch = curl_init("[URL unfurl="true"]http://xxxx/xxx/xxxx.asp");[/URL]
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_USERPWD, "<domain>\<name>:<pwd>");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_string);
curl_exec($ch);
curl_close($ch);
With no luck, 401 - Unauthorized: Logon Failed.... does anyone see anything I may be missing? Is there a specific curlopt I haven't set that I need to?