起点:
<?php$pageurl = "http://hostname/@api/deki/pages/=TestPage/files/=";$filename = "test.png";$theurl = $pageurl . $filename;$ch = curl_init($theurl);curl_setopt($ch, CURLOPT_cookie, ...); // -bcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // -Xcurl_setopt($ch, CURLOPT_BINARYTRANSFER, TRUE); // --data-binarycurl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: image/png']); // -Hcurl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); // -0...?>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)