0

Possible Duplicate:
How to simulate browser HTTP POST request and capture result in C#
Send POST request in C# like a web page does?

I'm making a test application in c# and I was wondering how can I fill a webform.

There is just 1 box I want to fill ,Here the details are:

<td>Your name: </td>
      <td><input class="text" type="text" name="name" /></td></tr>
      <tr><td colspan="2" align="center">
         <input class="text" type="submit" name="submitBtn" value="Login" />

So basically I would like to take the text of a textBox(its the easy part :)) inside of my WinForms application and put it into the name field which is on the url address and then send a request or press the Login button.

Is there an easy way to do this?

Community
  • 1
  • 1
Code Beast
  • 437
  • 2
  • 8
  • 17

1 Answers1

0

Take a look at the (Http)WebRequest

How to: Send Data Using the WebRequest Class
How to: Request Data Using the WebRequest Class

RobIII
  • 8,488
  • 2
  • 43
  • 93