跟蹤了一下,我想這個fileserve接口已經完全變化了
4 K' A" J; ]9 D $getsessionurl = "http://www.fileserve.com/upload-track.php";( M( }: E% A/ d; N; P* X& F
$reffer = "http://www.fileserve.com/upload-file.php";0 O" r) [% B" u$ E- v1 B* |: x9 [
$ch = curl_init();: M3 E5 L) ?9 P3 ^/ j
curl_setopt($ch, CURLOPT_URL, $getsessionurl);, R* O& U& u8 D o' o* r/ j
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
1 i9 V# {; ?! F* P* |; Q+ I+ z: o curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1 g$ ~' u+ V2 m3 X3 I M curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);/ E% G3 V+ Z" s+ F; [3 o5 @
curl_setopt($ch, CURLOPT_HEADER, 1);+ }' e: c) c0 m% Z) R
curl_setopt($ch, CURLOPT_REFERER, $reffer);9 X) Q9 U8 {5 }+ @& w; U$ V0 _
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
; v4 [" o: e M% Q curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
7 h# Y- ]5 O* p. ^! d. l $result = curl_exec($ch);
# M) a) o7 I& u5 ]; }3 s
K) r5 o% n! Z6 I) {echo $result; 1 L# r, ]3 {4 m/ P5 Z; C; @
$parse=explode('Id":"',$result);
7 D/ p! k8 F8 M$ Q! k; M5 t* G# B
c$ u1 c( e$ v3 M3 r返回的是: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' P3 e) @) C& z+ E$ s: A
根本沒有"Id",上面upload-file.php返回的情況類似 |