note 28258 added to function.curl-setopt
| From: | phipps at isppnet dot com | Date: | Tue, 07 Jan 2003 15:02:32 +0000 |
| Subject: | note 28258 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41792@lists.php.net to get a copy of this message | ||
With curlopt_postfields, I see two ways of passing the args:
1. array("key1"=>"encval1","key2"=>"encval2")
2.
implode("&",array("key1"=>"encval1","key2"=>"encval2")
The docs say pass the string yet multiple examples pass an array. The source shows
that is handles arrays, but I can't get it to do such on 4.1.2. I recommend only
using the imploded strings so there is no more confusion about postfields.
Good luck,
Bill
--
http://www.php.net/manual/en/function.curl-setopt.php
http://master.php.net/manage/user-notes.php?action=edit+28258
http://master.php.net/manage/user-notes.php?action=delete+28258
http://master.php.net/manage/user-notes.php?action=reject+28258