note 79572 added to function.curl-exec
| From: | me at lawrencemok dot com | Date: | Tue, 04 Dec 2007 07:52:05 +0000 |
| Subject: | note 79572 added to function.curl-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132780@lists.php.net to get a copy of this message | ||
Note that when you use CURL to POST things....e.g:
curl_setopt($ch, CURLOPT_POSTFIELDS, "string=This is a string");
The data part (e.g. "This is a string") inside the 3rd parameter should be applied with
urlencode()
Otherwise, if you intend to send a string like "%2F", you will end up with a "/"
on the receiving end, which can cause troubles. (e.g. serialize() data cannot be unserialize()
becase of the change in string length).
----
Server IP: 203.169.164.81
Probable Submitter: 203.198.150.93
----
Manual Page -- http://www.php.net/manual/en/function.curl-exec.php
Edit -- https://master.php.net/note/edit/79572
Del: integrated -- https://master.php.net/note/delete/79572/integrated
Del: useless -- https://master.php.net/note/delete/79572/useless
Del: bad code -- https://master.php.net/note/delete/79572/bad+code
Del: spam -- https://master.php.net/note/delete/79572/spam
Del: non-english -- https://master.php.net/note/delete/79572/non-english
Del: in docs -- https://master.php.net/note/delete/79572/in+docs
Del: other reasons-- https://master.php.net/note/delete/79572
Reject -- https://master.php.net/note/reject/79572
Search -- https://master.php.net/manage/user-notes.php