From 27b6939bc1af7ec902b676b8731d5a5879fb317e Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Mon, 27 Apr 2009 11:37:25 +0000 Subject: [PATCH] - 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 --- reference/curl/functions/curl-setopt.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index a706b40f88..6479d74ebe 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -1,5 +1,5 @@ - + curl_setopt @@ -849,6 +849,9 @@ use the full path. This can either be passed as a urlencoded string like 'para1=val1&para2=val2&...' or as an array with the field name as key and field data as value. + If value is an array, the + Content-Type header will be set to + multipart/form-data.