I\'m trying to communicate with a web service who\'s waiting first a token in each request. There is my problem, the web service is waiting the token throught file_get
file_get
curl_setopt($ch, CURLOPT_PUT, true);
For more info you can refer: How to start a GET/POST/PUT/DELETE request and judge request type in PHP?