Fixed bug #52331 (Use of @ in CURLOPT_POSTFIELDS is new)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304665 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2010-10-23 15:05:21 +00:00
parent 1321160515
commit c19f9a7c23

View file

@ -867,14 +867,20 @@
<row>
<entry valign="top"><constant>CURLOPT_POSTFIELDS</constant></entry>
<entry valign="top">
The full data to post in a HTTP "POST" operation.
To post a file, prepend a filename with <literal>@</literal> and
use the full path. This can either be passed as a urlencoded
string like '<literal>para1=val1&amp;para2=val2&amp;...</literal>'
or as an array with the field name as key and field data as value.
If <parameter>value</parameter> is an array, the
<literal>Content-Type</literal> header will be set to
<literal>multipart/form-data</literal>.
<simpara>
The full data to post in a HTTP "POST" operation.
To post a file, prepend a filename with <literal>@</literal> and
use the full path. This can either be passed as a urlencoded
string like '<literal>para1=val1&amp;para2=val2&amp;...</literal>'
or as an array with the field name as key and field data as value.
If <parameter>value</parameter> is an array, the
<literal>Content-Type</literal> header will be set to
<literal>multipart/form-data</literal>.
</simpara>
<simpara>
As of PHP 5.2.0, files thats passed to this option with the
<literal>@</literal> prefix must be in array form to work.
</simpara>
</entry>
<entry valign="top">
</entry>