摘要: private string HttpPost(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded"; request.ContentLength = Encoding.UTF8.GetB... 阅读全文
posted @ 2013-08-30 11:18 上帝的博客 阅读(701) 评论(0) 推荐(0)
摘要: private static string XmlToJSON(XmlDocument xmlDoc){ StringBuilder sbJSON = new StringBuilder(); sbJSON.Append("{ "); XmlToJSONnode(sbJSON, xmlDoc.DocumentElement, true); sbJSON.Append("}"); return sbJSON.ToString();}// XmlToJSONnode: Output an XmlElement, possibly as part of a h 阅读全文
posted @ 2013-08-30 09:17 上帝的博客 阅读(314) 评论(0) 推荐(0)