Tag Archives: ServicePointManager

Prevent “underlying connection was closed” errors in C#

This example shows how to fix the error “The underlying connection was closed” when downloading a response from a web page. Background The basic approach for downloading a result from a web page is simple. Create a new WebClient object … Continue reading

Posted in internet, web | Tagged , , , , , , , , , , , , | Leave a comment