WWW--Curl
WWW--Curl copied to clipboard
CURLOPT_UPLOAD and CURLOPT_CUSTOMREQUEST 'PUT'
$curl->setopt(CURLOPT_UPLOAD,1); res: HTTP/1.1 400 Bad Request Date: Tue, 26 Apr 2016 09:37:31 GMT Content-Type: text/html Content-Length: 267 Connection: close
Closing connection #0 ++++++++++++++++++++++++++++++++++++++++++ $curl->setopt(CURL_CUSTOMREQUEST,'PUT'); res: HTTP/1.1 200 OK Date: Tue, 26 Apr 2016 09:37:46 GMT Content-Length: 0 Connection: keep-alive x-oss-request-id: 571F36EA010B7AEF08624942 ETag: "2D546154C5386A050EE25716E6E346B4"
Connection #0 to host tvmtest.oss-cn-hangzhou.aliyuncs.com left intact Closing connection #0