header("Content-Type: text/html;charset=utf-8"); $curl = curl_init(); $url = 'http://yunpan.360.cn/'; $data = array( 'username'=>'用户名', 'password'=>'密码' ); $cookie_file ='./cookie.txt'; curl_setopt($curl,CURLOPT_URL,$url); curl_setopt($curl,CURLOPT_POST,count($data)); curl_setopt($curl,CURLOPT_POSTFIELDS,$data); curl_setopt($curl,CURLOPT_COOKIEJAR,$cookie_file); ob_start(); curl_exec($curl); $result = ob_get_contents(); ob_end_clean(); curl_close($curl);
by: 发表于:2017-10-19 09:42:16 顶(0) | 踩(0) 回复
??
回复评论