Github 公共倉庫已發布 v1.0。
以下curl命令僅下載 42KB 的 9 位元組輸出。
curl -O -L -J --ssl-no-revoke https://github.com/marmayogi/TTF2PostscriptCID-Win/releases/v1.0/TTF2PostscriptCID-Win-1.0.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 9 0 0:00:01 --:--:-- 0:00:01 9
根據收到的評論,在帖子中添加了curl僅帶有L標志的命令回應:
curl -L https://github.com/marmayogi/TTF2PostscriptCID-Win/releases/v1.0/TTF2PostscriptCID-Win-1.0.zip
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
根據收到的評論添加帖子。
我的桌面期待--ssl-no-revoke著curl命令。使用 flag 解決了這個問題k。這是證據。
"C:\Program Files\Neovim\bin\curl.exe" -o TTF2PostscriptCID-Win-1.0.zip -L https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip
% 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: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
任何人都可以對這個問題有所了解嗎?
提前致謝。
uj5u.com熱心網友回復:
我建議使用
curl -sL https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip >filename.zip
或者
curl -sLO https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip
您也可以選擇使用(放松 SSL 安全性)
curl -sL --ssl-no-revoke https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip >filename.zip
或者
curl -sLO --ssl-no-revoke https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip
-s, --silent 靜默或安靜模式。不顯示進度表或錯誤訊息。使 Curl 靜音。它仍然會輸出您要求的資料,甚至可能輸出到終端/標準輸出,除非您重定向它。除此選項外,使用 --show-error 禁用進度表,但仍顯示錯誤訊息。
-L, --location (HTTP) 如果服務器報告請求的頁面已移動到不同的位置(用 Location: 標頭和 3XX 回應代碼指示),此選項將使 curl 在新位置重做請求。
-O, --remote-name 將輸出寫入本地檔案,其名稱與我們獲得的遠程檔案類似。(僅使用遠程檔案的檔案部分,路徑被切斷。)檔案將保存在當前作業目錄中。
--ssl-no-revoke (Schannel) 此選項告訴 curl 禁用證書吊銷檢查。警告:此選項會放松 SSL 安全性,并且通過使用此標志,您正是要求這樣做。
然后 curl 會被重定向到您想要的任何檔案名 ( filename.zip) 或使用-sLO它自動選擇檔案名。
uj5u.com熱心網友回復:
好像你的網址不好?嘗試
curl 'https://github.com/marmayogi/TTF2PostscriptCID-Win/archive/refs/tags/v1.0.zip' -LO
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/520044.html
