14,974
edits
(Created page with "[https://curl.haxx.se/ cUrl] 是在命令行或腳本中用來傳輸資料的工具。(來源:[https://curl.haxx.se/ cUrl 官網])(替代函式庫:(1) PHP 原生的 [https://www.php.net/manual/en/book.curl.php Client URL Library] (2) [https://packagist.org/packages/curl/curl PHP 的 cURL 類別] (3) [https://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/objectstorage/installing_cURL/installing_cURL_on_Cygwin_on_Windows.html 在 Windows 上透過 Cygwin...") |
(如何解決錯誤:error code: 1010) |
||
| Line 65: | Line 65: | ||
相關文章 | 相關文章 | ||
* [https://github.com/curl/curl/issues/4982 cURL error 56: OpenSSL SSL_read: No error information · Issue #4982 · curl/curl] | * [https://github.com/curl/curl/issues/4982 cURL error 56: OpenSSL SSL_read: No error information · Issue #4982 · curl/curl] | ||
== 如何解決錯誤:error code: 1010 == | |||
識別問題 | |||
* 當我試圖透過 cURL 命令下載網頁內容時,遇到了一個問題,輸出顯示為「error code: 10100」。為了探索原因,重新執行了cURL命令並啟動了詳細模式(使用 {{kbd | key=<nowiki>-v</nowiki>}} 旗標)。顯示的標頭資訊包括: | |||
<pre> | |||
< report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=xxx"}],"group":"cf-nel","max_age":604800} | |||
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} | |||
< server: cloudflare | |||
</pre> | |||
建議解決方案 | |||
* 建議改成使用 JavaScript 的爬蟲來代替 cURL 命令的方案。 | |||
== 如何解決錯誤 405 Method Not Allowed == | == 如何解決錯誤 405 Method Not Allowed == | ||