Board index » Visual Studio » HTML "submit" without Browser
|
Oneide
|
HTML "submit" without Browser
Visual Studio304
Hi! I need to submit an HTML form programmatically but I don't want to use an HTTP POST. Instead I would like to simulate a "hidden" button click on "submit" ("click" without using a browser window). Here is what I want in pseudo-code: HTMLDocument doc doc.LoadURL(url) HTMLInputElement login = doc.GetInputItem("username") login.value = "loginname" HTMLInputElement passwd = doc.GetInputItem("password") passwd.value = "password" HTMLInputElement submit = doc.GetInputItem("submit") submit.click() Can anyone provide me some easy-to-understand code snipplet? I checked several examples like the MSDN WalkAll, but I didn't understand it =>too complicated for me :-(. - |
