看板 Anonymous
作者 標題 Re: 3/15紀錄
時間 2026-03-16 Mon. 11:56:13
![[圖]](https://i4.disp.cc/u/q/1nFS/ZWEyNmIxMTk.jpg)
--
-f, --fail
(HTTP) Fail silently (no output at all) on server errors. This is mostly done to enable scripts etc to better deal with failed attempts. In
normal cases when an HTTP server fails to deliver a document, it returns an HTML document stating so (which often also describes why and
more). This flag will prevent curl from outputting that and return error 22.
This method is not fail-safe and there are occasions where non-successful response codes will slip through, especially when authentication
is involved (response codes 401 and 407).
Example:
curl --fail https://example.com
See also --fail-with-body.
※ 編輯: 愛在漫延 時間: 2026-03-16 15:57:25 (台灣)
※ 同主題文章:
06-21 19:57 □ 6/21紀錄
… ×2588
03-12 21:00 □ 3/12雙蛋黃紀錄
03-13 23:41 □ 3/13善良與正直會回來的紀錄
03-14 16:23 □ 3/14圓周率紀錄
03-14 16:52 Re 3/14圓周率紀錄
03-16 00:06 □ 3/15紀錄
● 03-16 11:56 Re 3/15紀錄
03-16 12:34 Re 3/15紀錄
03-16 19:08 □ 3/16紀錄
03-16 20:04 Re 3/16紀錄
03-16 21:10 Re 3/16紀錄
03-16 21:12 Re 3/15紀錄
… ×186
※ 看板: Anonymous 文章推薦值: 0 目前人氣: 0 累積人氣: 1
回列表(←)
分享