note 123773 added to function.curl-setopt
| From: | alex at 1stleg dot com | Date: | Thu, 11 Apr 2019 23:12:06 +0000 |
| Subject: | note 123773 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210592@lists.php.net to get a copy of this message | ||
A note on CURLOPT_PRIVATE. The documentation fails to mention that the value associated with this
field must be a string!
$resource = curl_init();
curl_setopt($resource, CURLOPT_PRIVATE, new stdClass());
>> Object of class stdClass could not be converted to string
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.34 (proxied: 12.25.175.66)
----
Manual Page -- http://php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/123773
Del: integrated -- https://master.php.net/note/delete/123773/integrated
Del: useless -- https://master.php.net/note/delete/123773/useless
Del: bad code -- https://master.php.net/note/delete/123773/bad+code
Del: spam -- https://master.php.net/note/delete/123773/spam
Del: non-english -- https://master.php.net/note/delete/123773/non-english
Del: in docs -- https://master.php.net/note/delete/123773/in+docs
Del: other reasons-- https://master.php.net/note/delete/123773
Reject -- https://master.php.net/note/reject/123773
Search -- https://master.php.net/manage/user-notes.php