Adds the note explaining the different encoding types when sent as string vs. array.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279441 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel P. Brown 2009-04-27 15:21:00 +00:00
parent 4793804cd1
commit da0a5ae4c5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.40 $ -->
<!-- $Revision: 1.41 $ -->
<refentry xml:id="function.curl-setopt" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>curl_setopt</refname>
@ -1332,6 +1332,18 @@ Array
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
Passing an array to <entry><constant>CURLOPT_POST</constant></entry>
will encode the data as <emphasis>multipart/form-data</emphasis>,
while passing a URL-encoded string will encode the data as
<emphasis>application/x-www-form-urlencoded</emphasis>.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>