I am able to get a webpage using HttpClinet class as follows :
HttpClient client = new HttpClient();
HttpResponseMessage response = await client.GetAsync(@"http://59.185.101.2:10080/jsp/Login.jsp");
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
The page will render two textboes, namely Username & Password. It will also render many hidden variables.
I want to post this rendered Html to desired address, but with my own values of username & password. (preserving the rest of the hidden variables)
How do I do this ?
PS: THIS IS A CONSOLE APPLICATION POC