1.postman测试ok
2.C#代码
public static async Task<string> testGetToken(string URL, string param)
{
string responseBody = "eee";
//using (var clientHandler = new HttpClientHandler())
{
var handler = new HttpClientHandler();
handler.ServerCertificateCustomValidationCallback = delegate { return true; };
using (var client = new HttpClient(handler))
{
try
{
HttpContent content = new StringContent(param);
content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
HttpResponseMessage response = await clien