这个函数可以解决中文上传问题
private string HttpPostNew(string Url,string postDataStr)
{
//string post_string = Encoding.UTF8.GetString(Encoding.UTF8.GetBytes(postDataStr));
byte[] postBytes = Encoding.GetEncoding("utf-8").GetBytes(postDataStr);
HttpWebRequest request = WebRequest.Create(Url) as HttpWebRequest;//(HttpWebRequest)WebRequest.Create(Url);
request.Method = "POST";
//request.ContentType = "application/x-www-form-urlencoded";
request.ContentType = "application/json";
request.ContentLength = postBytes.Length;//Encoding.UTF8.GetByteCount(post_string);
// request.CookieContainer = cookie;
Stream myRequestStream = request.GetRequestStream();
//StreamWriter myStreamWriter = new StreamWriter(myRequestStream, Encoding.GetEncod