diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml index ed68d727f5..44e94c4424 100644 --- a/reference/curl/functions/curl-setopt.xml +++ b/reference/curl/functions/curl-setopt.xml @@ -366,6 +366,20 @@ + + CURLOPT_SAFE_UPLOAD + + &true; to disable support for the @ prefix for + uploading files in CURLOPT_POSTFIELDS, which + means that values starting with @ can be safely + passed as fields. CURLFile may be used for + uploads instead. + + + &false; by default at present, but this is likely to be changed in a + future version of PHP. + + CURLOPT_SSL_VERIFYPEER @@ -999,7 +1013,10 @@ As of PHP 5.5.0, the @ prefix is deprecated and - files can be sent using CURLFile. + files can be sent using CURLFile. The + @ prefix can be disabled for safe passing of + values beginning with @ by setting the + CURLOPT_SAFE_UPLOAD option to &true;.