How to submit http form using C#
问题 I have a simple html file such as <form action=\"http://www.someurl.com/page.php\" method=\"POST\"> <input type=\"text\" name=\"test\"><br/> <input type=\"submit\" name=\"submit\"> </form> Edit: I may not have been clear enough with the question I want to write C# code which submits this form in the exact same manner that would occur had I pasted the above html into a file, opened it with IE and submitted it with the browser. 回答1: Here is a sample script that I recently used in a Gateway POST