- 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:
Dave Barr 2009-04-27 11:37:25 +00:00
parent b8b45e28b2
commit 27b6939bc1

View file

@ -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&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>.
</entry>
<entry>
</entry>