一、post:
需要引用:
using System.Net;
public static String postOrderDate(String data, String url)
{
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.ContentType = "application/x-www-form-urlencoded;charset=\"utf-8\"";
request.Method = "post";
request.Timeout = 10000;
byte[] dataStr = Encoding.UTF8