I wonder if you have any library or any third-party component that does POST and GET on the sites. I need to navigate to some sites but I can not do GET nor the homepage of a specific site, it always returns me error 599.
Attempts:
private void button8_Click(object sender, EventArgs e)
{
WebClient client = new WebClient();
string html = client.DownloadString("http://aplicacao2.jt.jus.br/dejt/");
}
private void button9_Click(object sender, EventArgs e)
{
var request = (HttpWebRequest)WebRequest.Create("http://aplicacao2.jt.jus.br/dejt");
var response = (HttpWebResponse)request.GetResponse();
string html = new StreamReader(response.GetResponseStream()).ReadToEnd();
}
The two attempts return this error message to me:
"An unhandled exception of type 'System.Net.WebException' occurred in System.dll
Additional information: The remote server returned an error: (599) Unknown Reason. "
I have tried all the methods of this link and everyone gives the same error. link
I did the test for Postman (a chrome extension that performs these methods) and it worked fine.