note 85044 added to function.curl-setopt
| From: | w dot danford at electronics-software dot com | Date: | Tue, 12 Aug 2008 17:12:19 +0000 |
| Subject: | note 85044 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143417@lists.php.net to get a copy of this message | ||
Just a small detail I too easily overlooked.
<?php
/* If you set: */
curl_setopt ($ch, CURLOPT_POST, 1);
/* then you must have the data: */
curl_setopt ($ch, CURLOPT_POSTFIELDS, $PostData);
?>
I found with only the CURLOPT_POST set (from copy, paste editing of course) cookies were not getting
sent with CURLOPT_COOKIE. Just something subtle to watch out for.
----
Server IP: 69.147.83.197
Probable Submitter: 70.249.41.237
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/85044
Del: integrated -- https://master.php.net/note/delete/85044/integrated
Del: useless -- https://master.php.net/note/delete/85044/useless
Del: bad code -- https://master.php.net/note/delete/85044/bad+code
Del: spam -- https://master.php.net/note/delete/85044/spam
Del: non-english -- https://master.php.net/note/delete/85044/non-english
Del: in docs -- https://master.php.net/note/delete/85044/in+docs
Del: other reasons-- https://master.php.net/note/delete/85044
Reject -- https://master.php.net/note/reject/85044
Search -- https://master.php.net/manage/user-notes.php