HttpWebRequest 请求数据_.NET_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > .NET > HttpWebRequest 请求数据

HttpWebRequest 请求数据

 2014/9/4 12:19:06  porray  程序员俱乐部  我要评论(0)
  • 摘要:stringfullUrl="http://vip.AAA.cn/PreviewInterfaceAction.action?code=vip0008&data_digest=vip&receiveprovince=广东省&receivecity=深圳市&receivearea=南山区";HttpWebRequestrequest=(HttpWebRequest)HttpWebRequest.Create(fullUrl);//request
  • 标签:Web 请求数据 数据 HttpWebRequest HTTP
monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px">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;
发表评论
用户名: 匿名