From 6c0bf2610646d63c1dfd5fa0e58fec7abc477c13 Mon Sep 17 00:00:00 2001 From: "Daniel P. Brown" Date: Mon, 27 Apr 2009 15:24:03 +0000 Subject: [PATCH] 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 --- reference/curl/functions/curl-setopt-array.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/reference/curl/functions/curl-setopt-array.xml b/reference/curl/functions/curl-setopt-array.xml index 5a03a1be96..f51ecf33fb 100644 --- a/reference/curl/functions/curl-setopt-array.xml +++ b/reference/curl/functions/curl-setopt-array.xml @@ -1,5 +1,5 @@ - + curl_setopt_array @@ -104,6 +104,19 @@ if (!function_exists('curl_setopt_array')) { + + &reftitle.notes; + + + As with curl_setopt, passing an + array to CURLOPT_POST + will encode the data as multipart/form-data, + while passing a URL-encoded string will encode the data as + application/x-www-form-urlencoded. + + + + &reftitle.seealso;