.net core Post和Get请求方法
public string Post(string url, string postData = null, string contentType = null, Dictionary<string, string> headers = null, int timeOut = 30)
{
postData = postData ?? "";
using (HttpClient client = new HttpClient())
{<