HTTP 请求:发布错误:InitializeSecurityContext 失败:吊销功能无法更改我在创建发布请求时出错,返回的错误是:
New HTTP Request()
POST [url]
schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
这里的解决方案对我不起作用,我得到了相同的错误消息带标头的 HTTP 请求?.
我的代码大约是:
request = HTTPRequest(
Url(url),
Method("POST"),
Headers( {"Accept: application/json"}, {"Authorization = Bearer " }),
JSON(json)
);
为什么 jsl 不在 stackoverflow 上?
回复:HTTP 请求:发布错误:InitializeSecurityContext 失败:吊销功能无法更改您可以使用不安全选项。
request = HTTPRequest(
Url(url),
Method("POST"),
Headers( {"Accept: application/json"}, {"Authorization = Bearer " }),
JSON(json),
Insecure(1)
);
它不会像以下那样验证证书:
k, --insecure (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k, --insecure is used.
回复:HTTP 请求:发布错误:InitializeSecurityContext 失败:吊销功能无法完成我不确定您是否将授权令牌从标头中删除。
你有
“授权=承载”
通常是
“授权:Bearer [和一些授权密钥]”
如果您确实正确并且服务器端安全票证有问题,您可以使用
请求 << 不安全 (1)
其工作方式如下:
来自 curl 的联机帮助页
-k, --insecure (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k, --insecure is used.