From c19f9a7c23cfb4493ab3a78bd07342db91e16267 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sat, 23 Oct 2010 15:05:21 +0000 Subject: [PATCH] Fixed bug #52331 (Use of @ in CURLOPT_POSTFIELDS is new) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304665 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/curl/functions/curl-setopt.xml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index 8904edb6da..cc82888edf 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -867,14 +867,20 @@ CURLOPT_POSTFIELDS - The full data to post in a HTTP "POST" operation. - To post a file, prepend a filename with @ and - 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. + + The full data to post in a HTTP "POST" operation. + To post a file, prepend a filename with @ and + 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. + + + As of PHP 5.2.0, files thats passed to this option with the + @ prefix must be in array form to work. +