你最好看一下WebRequest班级(System.Net).
您需要查看POST方法以发布表单(单击提交按钮并填写必填字段).
例:
    // Create a request using a URL that can receive a post. 
    WebRequest request = WebRequest.Create ("http://www.contoso.com/PostAccepter.aspx ");
    // Set the Method property of the request to POST.
    request.Method = "POST";
    // Create POST data and convert it to a byte array.
    string postData = "This is a test that posts this string to a Web server.";
    byte[] byteArray = Encoding.UTF8.GetBytes (postData);
有一个很好的教程和大量的信息在MSDN上这里.(上述源代码的延续)
| 归档时间: | 
 | 
| 查看次数: | 266 次 | 
| 最近记录: |