Adds a similar note to the one I just added in curl_setopt() to explain variance in enctypes with string vs. array.

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

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry xml:id="function.curl-setopt-array" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>curl_setopt_array</refname>
@ -104,6 +104,19 @@ if (!function_exists('curl_setopt_array')) {
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
As with <member><function>curl_setopt</function></member>, 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>