Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi There

I seem to get nowhere. All over the help it always explains how to get data from a web page. I don't want to get data, I want to send it there as I navigate there from my Windows desktop application.
I want to be able to navigate to my web site, and also submit my post data, from a desktop application (only interested in C#). I do not want to read from the web site, I want to navigate to the web site but not use method get, as that would be easy but method post.

The client using the Desktop application will click a button on this desktop application, that will navigate to the web site with the post data, check his credentials and then if ok log him into the site.

I can do this:
System.Diagnostics.Process.Start("https://www.supremweb.com/taxi/buydriverdownloadversion.aspx?txtUserName=sad&txtpassword=happy");

Now this is easy but I want Post not Get. The method above is get.
I have no issues with getting the form data in C#.NET on the web site, but how would I include the Post data in it as I navigate to the site?

I don't want to see anything in the URL BAR of the browser, not even encrypted.

Many Thanks for anyone helping me on this.
Posted
Updated 14-May-11 5:09am
v2

1 solution

One idea is to dynamically create and save an html page locally with the post data, which will submit to the required web site once opened. This html file can be deleted once the submit has been completed.
 
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