note 86284 deleted from function.curl-setopt by cmb

From: Date: Mon, 21 Nov 2016 19:01:35 +0000
Subject: note 86284 deleted from function.curl-setopt by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207278@lists.php.net to get a copy of this message
Note Submitter: dorphalsig at gmail dot com ---- 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.

« previous php.notes (#207278) next »