Connection force closed error

I use ASP.NET WebClient.DownloadFile (url) to get images from Image Servers of several of our clients. A "URL" is usually simple, such as " http://somewhere.com/images/image01.jpg ".

This works great for 99% of our customers. But one gives me "the existing connection was forcibly closed by the remote host." Everytime.

I tried using DownloadData () instead, the same problem. And I can get the image through the browser, but not with WebClient.

Does anyone have any recommendations?

David

+3
source share
2 answers

, . , -.

+1

, - HttpFox FireFox, , , , - "", , / cookie ( ).

, , WebClient .

0

Source: https://habr.com/ru/post/1698124/


All Articles