note 9310 deleted from function.curl-setopt by dave

From: Date: Thu, 12 Aug 2004 05:07:50 +0000
Subject: note 9310 deleted from function.curl-setopt by dave
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79682@lists.php.net to get a copy of this message
Note Submitter: jmorrow@alum.mit.edu ---- The documentation is a little deceptive here. The option argument is listed as having type "string", but this is not correct. The actual argument should be a constant (ie, a string WITHOUT quotes). So... curl_setopt($c, CURLOPT_VERBOSE, 1); works, while curl_setopt($c, "CURLOPT_VERBOSE", 1); will silently fail, and you will scratch your head and wonder why your server is ignoring your instructions...

« previous php.notes (#79682) next »