我把代码也贴上
[C#] 纯文本查看 复制代码 HttpItem item = new HttpItem();
item.URL = url;
item.Encoding = Encoding.UTF8;
item.Method = "GET";
item.UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)";
item.Referer = "mp.weixin.qq.com/cgi-bin/login?lang=zh_CN";
item.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
item.Accept = "application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-xpsdocument, */*";
item.Cookie = cookies;
item.Header.Add("Host", "mp.weixin.qq.com"); |