Hi Everyone, Some help required :-
There is a website "www.mywebsite.com". Each time a link is opened, a form action is generated dynamically .The form consists of two button with the same name "mybutton", but the value of each button is different.I want to submit the form automatically( using either the WebBrowser component or the HTTPWebRequest class), whenever the user enters the main url in a textbox.
Eg:-
User enters
www.mywebsite.com/1234.html, then a page is shown with the form with <form "action"="www.abc.mywebsite.com/1234.html">and the two buttons, <input type=submit name="mybutton" value="button1"> and <input type=submit name="mybutton" value="button2">.
If there is some other link like
www.mywebsite.com/87878.html then the form action changes..
So basically I need to do the following
1).Get the form action of the URL entered by the user.
2).Submit the form with the method POST.
I searched a lot for some help on the topic, but as I couldn't, I am asking for help. Thank you. :)