curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Charset: UTF-8,*;q=0.5', 'User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11', 'Accept-Encoding: gzip,deflate,sdch', 'Accept-Language: zh-CN,zh;q=0.8', 'Connection: keep-alive', 'Content-Type:application/x-www-form-urlencoded; charset=UTF-8', 'Referer: http://somewww.com', 'X-Requested-With: XMLHttpRequest', ));
curl参数备忘
回复