/// <summary> /// POST获取HTML /// </summary> /// <param name="url"></param> /// <returns></returns> string Post(string url, string param) { byte[] byData = Encoding.Default.GetBytes(param); var client = new WebClient(); var data = client.UploadData(url, "Post", byData); return Encoding.Default.GetString(data); } /// <summary> /// GET获取HTML /// </summary> /// <param name="url"></param> /// <returns></returns> string Get(string url) { var client = new WebClient(); var data = client.DownloadData(url); return Encoding.Default.GetString(data); }