So I'm attempting to use the WebClient#downloadString(url) and it's not seeming to work, this is the error message:
An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code
Additional information: The underlying connection was closed: The connection was closed unexpectedly.
I'm not sure why this happens or how to fix it, if anyone could help me out with that than that would be great. My current code is this:
string webData = new System.Net.WebClient().DownloadString("http://api.predator.wtf/host2ip/?arguments=www.google.com");
This code is mainly just for testing and it's not working at all. Anyone have any ideas? I've looked around a bit and can't find any way to fix this error.