Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I want to make windows app that is auto login and fill needful data and submit the form in another web application through HtmlAgilityPack.

Please help me
Thanks
Posted

1 solution

HtmlAgilityPack is a library for parsing HTML content, it is not used for client - server interactions. So in short you cannot submit a forms with it.

But you can create a submission request yourself with a WebRequest class[^].
If I were you, I would investigate the request that browser sends when you submit a form on that particular website that you are targeting, for example you could use Fiddler[^] for this. After that you can use WebRequest.Create method and set the required headers, post data, etc. on that request. After that you can get the response, that browser gets when the user submit the form, and I would load that response in HtmlAgilityPack for further processing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900