日期:2014-05-17 浏览次数:21136 次
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
request.Timeout = 30000;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
strResult = readStream.ReadToEnd();
if (request.HaveResponse)
{
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
return strResult;