摘要: 将数据作为XML数据发送,例如:public void PostXml(string url, string xml){byte[] bytes = Encoding.UTF8.GetBytes(xml);HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);request.Method = "POST";request.ContentLength = bytes.Length;request.ContentType = "text/xml";using (Stream requ 阅读全文
posted @ 2013-10-08 20:48 zhushang 阅读(711) 评论(0) 推荐(0)