|
1金钱
抓到的数据提示:必须使用适当的属性或方法修改此标头。 参数名: name
- 抓包的数据:
- Request Headersview source
- Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
- Accept-Encoding:
gzip,deflate,sdch
- Accept-Language:
zh-CN,zh;q=0.8
- Cache-Control:
max-age=0
- Connection:
keep-alive
- Cookie:
thw=cn; cna=lf7lDYKXkg8CAW5Ry3DRl/Nx; cainiao_abtest9_1=1; _m_h5_tk=ba6228672fc84a4107963dc4f79ae4aa_1433152957926; _m_h5_tk_enc=cbf2fb1d2398fc8CXXd6k9A%3D%3D; cookie2=1c04fe9948c2852c48b3bef9588a95b2; t=e5d6446daa08cba76d58909b4698cc46; l=AsLCuJtY1ZPzQWrBPEvLSFZxksYkk8at; isg=9F0FCD0DE639097FC1526A3AE4946084
- Host:
item.taobao.com
- User-Agent:
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
代码:
HttpHelper hp = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://item.taobao.com/item.htm?spm=a230r.1.14.23.KoipeZ&id=38370837811&ns=1&abbucket=15",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
UserAgent = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36",
KeepAlive = true,
};
item.Header.Add("Referer", "http://s.taobao.com/search?q=%E6%B3%A1%E6%BE%A1%E7%90%83&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=1.7274553.1997520841.d20&initiative_id=tbindexz_20150602");
item.Header.Add("Host", "item.taobao.com");
item.Header.Add("Connection", "keep-alive");
item.Header.Add("Cache-Control", "max-age=0");
item.Header.Add("Accept-Language", "zh-CN,zh;q=0.8");
item.Header.Add("Accept-Encoding", "gzip,deflate,sdch");
HttpResult hr = hp.GetHtml(item);
string str = Regex.Replace(hr.Html, @"""", "").ToString();
|
|