#region 传入url,获得Http Post public string HttpGet(string url) { string result = string.Empty; try { var webClient = new WebClient { Encoding = Encoding.UTF8 }; if (url.Length != 0) { result = webClient.DownloadString(url); } } catch (Exception ex) { result = ex.Message; } return result; } #endregion