Sometimes that’s not enough, so you need more;
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘X-HTTP-Method-Override: PUT’));

Link: http://tr.php.net/curl_setopt#109634