I am trying to create an HTTP request to read the URL, and this code was working fine 15 days back, but now it\'s not working.
I had a similar issue and it turned out that it wasn't my machine closing the connection but rather the server with which I was connected was kicking me due to an error in my code that spammed the site.
For anyone who has this issue, check that you aren't doing the same thing I was. If you think it's the server, it may be that the server is trying to handle too many requests all at once, not always from the same source.