Thank you so much for posting this. I've been banging my head against this issue for several hours.
Seems crazy that
[code]curl_setopt($ch, CURLOPT_PUT, true);[/code]
and
[code]curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");[/code]
should produce identical results ... but somehow the first one doesn't work and the second one does.