[英]What does -vo option in curl mean?
所以我有這種格式的curl
請求:
curl -vo /dev/null domain.com/file.jpg
我知道這會執行GET請求,但是我很難找到-vo
確切功能。
從man curl
:
-o, --output <file>
Write output to <file> instead of stdout. If you are using {} or [] to fetch
multiple documents, you can use '#' followed by a number in the <file> spec-
ifier. That variable will be replaced with the current string for the URL
being fetched. Like in:
curl http://{one,two}.site.com -o "file_#1.txt"
[...]
-v, --verbose
Be more verbose/talkative during the operation. Useful for debugging and
seeing what's going on "under the hood". A line starting with '>' means
"header data" sent by curl, '<' means "header data" received by curl that is
hidden in normal cases, and a line starting with '*' means additional info
provided by curl.
[...]
從手冊頁 ( man curl
):
-o /-輸出[文件]
將輸出寫入[file]而不是stdout。 如果您使用{}或[]來提取多個文檔,則可以在文件[file]說明符中使用'#'后跟數字。 該變量將被要獲取的URL的當前字符串替換。 就像在:curl http:// {one,two} .site.com -o“ file_#1.txt”
或使用幾個變量,例如:
curl http:// {site,host} .host [1-5] .com -o“#1_#2”
您可以使用此選項的次數與您擁有的URL數量一樣多。
-v / - 詳細
使獲取變得更加冗長/健談。 對調試最有用。 以“>”開頭的行表示curl發送的“標題數據”,以“ <”表示curl接收到的“標題數據”(在正常情況下是隱藏的),以“ *”開頭的行表示curl提供的其他信息。 請注意,如果只希望在輸出中使用HTTP標頭,則-i /-include可能是您要查找的選項。
如果您認為此選項仍不能為您提供足夠的詳細信息,請考慮改用--trace或--trace-ascii。
此選項將覆蓋--trace-ascii或--trace的先前用法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.