using System;
using System.Net;
using System.Text;
using System.Collections.Specialized;class TestSubmit
{
  public static void Main()
  { WebClient myWebClient = new WebClient();
NameValueCollection myNameValueCollection = new NameValueCollection();
myNameValueCollection.Add("user","Admin");
myNameValueCollection.Add("pwd","123456");
string header = "";
byte[] responseArray = myWebClient.UploadValues("http://localhost/test/testsubmit.asp","POST",myNameValueCollection);
header = myWebClient.ResponseHeaders[4].ToString() + "\n";
string content = Encoding.Default.GetString(responseArray);
Console.WriteLine(content);  }}2. TestSubmit.asp:<%
  dim sKey
  for each sKey in Request.Form
Response.Write(sKey & "=" & Request.Form(sKey) & "<BR>")
  next
%>