You do not send HTTP request to a form. This is a form on client sends HTTP request to the server. The fact that the form itself was created on server does not matter — you received it in response to your
previous request, when you requested for the page.
Now, HTTP request is HTTP request, as well as response — if does not matter what's on the server side: PHP, ASP.NET or anything else. You cannot even determine that from your client side.
To send your data in HTTP request you need from .NET program to use the class
System.Net.HttpWebRequest
with the
Method
"POST". You will need to send the same data a form would. To see what data should be sent, look at the HTML code of the form. Compile time type of the request variable will be the class
System.Net.WebRequest
, as the request's run-time type will be defined based on your URL by its factory method
Create
.
You will find the code sample here:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[
^].
—SA