mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
1321160515
commit
c19f9a7c23
1 changed files with 14 additions and 8 deletions
|
@ -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&para2=val2&...</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&para2=val2&...</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>
|
||||
|
|
Loading…
Reference in a new issue