httprequest.GetResponse()挂?

时间:2010-12-16 05:24:19

标签: c# .net

我遇到了与以下代码相关的问题,有人知道如何修复它吗?

代码段

 using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
            using (Stream dataStream = response.GetResponseStream())
            {
                StreamReader reader = new StreamReader(dataStream);
                responseString = reader.ReadToEnd();
            }