note 86284 modified in function.curl-setopt by danbrown

From: Date: Sun, 17 May 2009 17:16:23 +0000
Subject: note 86284 modified in function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154962@lists.php.net to get a copy of this message
This may not be a surprise for many, but I know I bled my eyes out trying to implement this in php. And when I knew it was this simple, I really felt extremely stupid. So I put this just so google will save somebody some time in the future. PHP NTLM AUTH Make sure you have the 'curl' extension loaded now just do... <?php curl_setopt($ch,CURLAUTH_NTLM); curl_setopt($ch,CURLOPT_USERPWD,"$username:$password"); ?> and just continue to use curl in the ordinary fashion. --was-- This may not be a surprise for many, but I know I bled my eyes out trying to implement this in php. And when I knew it was this simple, I really felt extremely stupid. So I put this just so google will save somebody some time in the future. PHP NTLM AUTH Make sure you have the 'curl' extension loaded now just do... curl_setopt($ch,CURLAUTH_NTLM); curl_setopt($ch,CURLOPT_USERPWD,"$username:$password"); and just continue to use curl in the ordinary fashion. http://php.net/manual/en/function.curl-setopt.php

« previous php.notes (#154962) next »