Curl 命令因 InitializeSecurityContext 失败

问题描述 投票:0回答:1

我正在尝试使用 cURL 来调用一些 API。使用 Postman 调用 API 可以工作,但使用 cURL 则不会显示错误:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).

我不知道如何解决。有什么想法吗?

curl
1个回答
0
投票

从 Postman,您可以生成

cURL
代码

复制它

将其粘贴到 Git Bash 并运行它。

您可以将其与您的

cURL
进行比较,然后找出问题所在。

© www.soinside.com 2019 - 2024. All rights reserved.