|
发表于 2011-9-20 10:12:13
|
显示全部楼层
跟踪了一下,我想这个fileserve接口已经完全变化了
$getsessionurl = "http://www.fileserve.com/upload-track.php";
$reffer = "http://www.fileserve.com/upload-file.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $getsessionurl);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
$result = curl_exec($ch);
echo $result;
$parse=explode('Id":"',$result);
返回的是:HTTP/1.1 410 Gone X-Powered-By: PHP/5.3.1 Content-type: text/html Content-Length: 0 Date: Tue, 20 Sep 2011 02:18:44 GMT Server: fileserve
根本没有"Id",上面upload-file.php返回的情况类似 |
|