note 123612 added to function.curl-setopt-array
| From: | lawrence at dub3solutions dot com | Date: | Wed, 13 Feb 2019 23:23:23 +0000 |
| Subject: | note 123612 added to function.curl-setopt-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210239@lists.php.net to get a copy of this message | ||
This function does not mix with
curl_file_create (CURLFile object) and
CURLOPT_POSTFIELDS. Took me forever to figure out, but essentially I was getting an
"Invalid filename" PHP warning and the files weren't being sent. I was able to
correct the issue in a matter like so:
curl_setopt_array($curl, $curlOpts);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postFields);
I removed the $postFields value from $curlOpts and set it separately using
curl_setopt.
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.35 (proxied: 72.194.104.207)
----
Manual Page -- http://php.net/manual/en/function.curl-setopt-array.php
Edit -- https://master.php.net/note/edit/123612
Del: integrated -- https://master.php.net/note/delete/123612/integrated
Del: useless -- https://master.php.net/note/delete/123612/useless
Del: bad code -- https://master.php.net/note/delete/123612/bad+code
Del: spam -- https://master.php.net/note/delete/123612/spam
Del: non-english -- https://master.php.net/note/delete/123612/non-english
Del: in docs -- https://master.php.net/note/delete/123612/in+docs
Del: other reasons-- https://master.php.net/note/delete/123612
Reject -- https://master.php.net/note/reject/123612
Search -- https://master.php.net/manage/user-notes.php