Just found the right way. You have to "simulate" a file uploading. For PUT requests only:
<?php
/**
* Data
*/
$data = array(
'name' => 'syl',
'email' => 'some@email.it'
);
/**
* Convert array to an URL-encoded query string
*/
$data = http_build_query($data, '', '&');
/**
* Open PHP memory
*/
$memory = fopen('php://memory', 'rw');
fwrite($memory, $data);
rewind($memory);
/**
* Simulate file uploading
*/
curl_setopt($handle, CURLOPT_INFILE, $memory);
curl_setopt($handle, CURLOPT_INFILESIZE, strlen($data));
curl_setopt($handle, CURLOPT_PUT, true);
?>