I am logging into a website using WebClient.UploadData (), but to be able to perform any type of operation after logging in to the site, I can not do it. I have already tried with httpclient and can not.
var wc = WebClient();
string post = HttpUtility.UrlEncode("ctl00$ContentMain$login") + "=" + login +"&" + HttpUtility.UrlEncode("ctl00$ContentMain$password") + "=" + password + "&" + HttpUtility.UrlEncode("ctl00$ContentMain$btnCompletesummarized") + "=" + HttpUtility.UrlEncode("Complete summarized");
byte[] resposta = wc.UploadData(url, "POST", UTF8Encoding.Default.GetBytes(post));
resultado = UTF8Encoding.UTF8.GetString(resposta);
with this code I can log in to the site, but to be able to perform an operation like clicking on the logged in page I can not.
button after login:
<input type = "submit" name = "btnCompleteConsultation" value = "Complete Consultation" id = "btnCompleteConsultation">
Example: I can log into my facebook with WebClient.UploadData (), but after login to be able to click on the button like "messenger" I can not simulate with WebClient.
Would you guys have any tips that can help me with this problem?