« Doing crap IIS NTLM authentication in PHP | Main | Sending plain text and HTML version in the same email »

April 23, 2007

NTLM transaction using CURL

<?
$ch = curl_init("http://88.108.214.235:81/Lists/Items/Search%20Results.aspx");

curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_USERPWD, 'username:passwd');
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);

print curl_exec($ch);

curl_close($ch);
?>

 

Posted by pj at April 23, 2007 03:34 PM

Comments