publicstaticstringHttpRequest(stringUrl,stringpostDataStr){//发送HttpWebRequestrequest=(HttpWebRequest)WebRequest.Create(Url);request.Method="GET";if(postDataStr!=""){request.Method="POST";request.ContentType="application/x-www-form-urlencoded";byte[]payload=System.Text.Encoding.UTF8.GetBytes(postData