开发者

httprequest.GetResponse() hang?

I meet a issue that is related to the following code , anyone know 开发者_运维百科how to fix it?

code snippet

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


Look into "Aysncronous HttpWebResponse"'s

http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=582

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜