HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); //req.Method = "POST"; req.KeepAlive = true; req.ContentType = "application/x-www-form-urlencoded"; req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; req.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"; res = (HttpWebResponse)req.GetResponse(); StreamReader reader = new StreamReader(res.GetResponseStream(), System.Text.Encoding.Default); strResult = reader.ReadToEnd();
- 4 回答
- 0 关注
- 1071 浏览
添加回答
举报
0/150
提交
取消