Send PUT request with PHP cURL

后端 未结 2 904
梦谈多话
梦谈多话 2020-12-12 02:10

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

2条回答
  •  無奈伤痛
    2020-12-12 02:53

    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?

提交回复
热议问题