cvs: phpdoc /en/reference/curl/functions curl-setopt.xml
| From: | Dave Barr | Date: | Mon, 27 Apr 2009 11:37:25 +0000 |
| Subject: | cvs: phpdoc /en/reference/curl/functions curl-setopt.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3893@lists.php.net to get a copy of this message | ||
dave Mon Apr 27 11:37:25 2009 UTC
Modified files:
/phpdoc/en/reference/curl/functions curl-setopt.xml
Log:
- 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.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/functions/curl-setopt.xml?r1=1.39&r2=1.40&diff_format=u
Index: phpdoc/en/reference/curl/functions/curl-setopt.xml
diff -u phpdoc/en/reference/curl/functions/curl-setopt.xml:1.39
phpdoc/en/reference/curl/functions/curl-setopt.xml:1.40
--- phpdoc/en/reference/curl/functions/curl-setopt.xml:1.39 Sat Apr 25 21:57:07 2009
+++ phpdoc/en/reference/curl/functions/curl-setopt.xml Mon Apr 27 11:37:25 2009
@@ -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>