note 46377 added to function.curl-setopt
| From: | (plyrvtatmaildotru) | Date: | Fri, 08 Oct 2004 21:10:58 +0000 |
| Subject: | note 46377 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78199@lists.php.net to get a copy of this message | ||
Each example of CURLOPT_POSTFIELDS in these comments has missing urlencode() on variable values.
This should be applied according to RFC1738
<?php
$vars=null;
foreach($data as $key=>$value)
if($key && $value)
$vars.=$key."=".urlencode($value)."&";
?>
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46377
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46377&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46377&report=yes
Search -- http://master.php.net/manage/user-notes.php