mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Content-Type is forced to multipart/form-data if an array is passed to
CURLOPT_POSTFIELDS. This is due to the extension using CURLOPT_HTTPPOST (which allows the use of files) for array parameters instead of CURLOPT_POSTFIELDS or CURLOPT_COPYPOSTFIELDS. Fixes bug #48083. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279434 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b8b45e28b2
commit
27b6939bc1
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.39 $ -->
|
||||
<!-- $Revision: 1.40 $ -->
|
||||
<refentry xml:id="function.curl-setopt" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>curl_setopt</refname>
|
||||
|
@ -849,6 +849,9 @@
|
|||
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>.
|
||||
</entry>
|
||||
<entry>
|
||||
</entry>
|
||||
|
|
Loading…
Reference in a new issue