string url = "http://www.***.com?id=123&username=test&userpwd=*****";  
WebRequest wRequest = WebRequest.Create(url);  
wRequest.Method = "GET";  
wRequest.ContentType = "text/html;charset=UTF-8";  
WebResponse wResponse = wRequest.GetResponse();  
Stream stream = wResponse.GetResponseStream();  
StreamReader reader = new StreamReader(stream, System.Text.Encoding.Default);  
string str = reader.ReadToEnd();   //url返回的值  
reader.Close();  
wResponse.Close();  

 

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
猜你喜欢
  • 2021-11-29
  • 2021-12-26
  • 2021-11-16
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案