note 107145 deleted from function.curl-setopt by danbrown

From: Date: Wed, 11 Jan 2012 17:18:19 +0000
Subject: note 107145 deleted from function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185585@lists.php.net to get a copy of this message
Note Submitter: Adam Monsen ---- This may seem obvious, but if you want the Content-Type header set to "multipart/form-data" (when CURLOPT_POSTFIELDS is an array), CURLOPT_POST *must* be set to FALSE. If you set CURLOPT_POSTFIELDS to an array *and* have CURLOPT_POST set to TRUE, Content-Length will be -1 and most sane servers will reject the request.

« previous php.notes (#185585) next »