HTTP 要求:發布錯誤:InitializeSecurityContext 失敗:撤銷函數無法變更我創建 post 請求時出錯,返回的錯誤是:
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 失敗:撤銷功能無法執行我不確定您是否在標頭中留下了授權令牌。
你有
“授權=承載”
通常是
“授權:持有者[和一些授權密鑰]”
如果您的設定正確且伺服器端安全票證有問題,您可以使用
請求 << 不安全 (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.