开发者

Exception downloading HTML code

开发者 https://www.devze.com 2023-03-18 18:10 出处:网络
I\'m trying to download the HTML code of one website using new WebClient().DownloadString() but I\'m getting this exception all the time:

I'm trying to download the HTML code of one website using new WebClient().DownloadString() but I'm getting this exception all the time:

The underlying connection was close开发者_如何学运维d. An unexpected error occured on a receive

Does anyone know how to solve this problem?


Check out this question. You might find the same solution works for you

Dotnet webclient timesout but browser works file for json webservice

0

精彩评论

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