#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

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案