[C#] 纯文本查看 复制代码 HttpItem item = new HttpItem();
item.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
item.Host = "mp.weixin.qq.com";
item.UserAgent = "Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1";
item.URL = "https://mp.weixin.qq.com/cgi-bin/message?t=message/list&count=20&day=7&token=1224738469&lang=zh_CN";
item.Cookie = "Thu, 20 Feb 2014 07:56:58 UTC; remember_acct=2659211826; slave_user=gh_be2baa1a4889; slave_sid=aXMyTloydHZjTVlCcnA4T09PY1N5VGx3NHFyVmFOTnRjUGY4U0hEMXN5QVNYSkZJdVB6MkZTd0toWUNzSW9UU2Q1XzJNQzFjYUIzNGhHTk12ak05YmhScWNyUVNOSUpfT0dfemkwSnFDTXVSc2VDVklUcjRnZ1JTTEVHcGpqZEo=; bizuin=2393456940; uin_cookie=1312491652; euin_cookie=AEB67D4D252CEE034EC4FCD3A22C93E67F6BA94FA1F03ACB; ac=1,021,";
string html= new HttpHelper().GetHtml(item).Html;
cookie和参数是我用火狐抓下来的
这个在我电脑上和同事的电脑上是能跑出结果的,但放到服务器上就报错 |