I am writing a Web Crawler in C#. There is this website which has two text-fields (Username & Password) and a Login button. Now I want to Submit data through my C# code using WebRequest or WebClient object, but after executing this line
NameValueCollection values = new NameValueCollection();
values.Add("userName", "abc");
values.Add("pwd", "Potagold201");
byte[] result = client.UploadValues(URL, "POST", values);
string ResultAuthTicket = Encoding.UTF8.GetString(result);
I get redirected to Login Page... In short I am unable to post Data on that page.