·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP.NET网站开发 >> HttpWebRequest 请求数据
string fullUrl = "http://vip.AAA.cn/PReviewInterfaceAction.action?code=vip0008&data_digest=vip&receiveprovince=广东省&receivecity=深圳市&receivearea=南山区";
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(fullUrl);
//request.Method = "GET"; //POST
string res = string.Empty;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
res = reader.ReadToEnd();
reader.Close();
return res;