2015-10-20 23 views

回答

0

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. 

    [...] 
0

man pageman curl):

-o/- 輸出[文件]

寫入輸出到[文件]代替標準輸出。如果您使用{}或[]獲取多個文檔,則可以在[文件]說明符中使用'#',後跟一個數字。該變量將替換爲正在獲取的URL的當前字符串。像: 捲曲的http:// {一,二} .site.com -o 「_文件1.txt的#」

或使用幾個變量,如:

捲曲的http:// {網站,主機}。主持人[1-5] .COM -o「#1_#2」

你可以使用這個選項,因爲多次,你有網址的數量。


-v/- 詳細

使得獲取更詳細的/健談。對調試非常有用。以'>'開始的行表示由curl發送的「標題數據」,'<'表示在正常情況下隱藏的由curl接收的「標題數據」,以'*'開頭的行表示由curl提供的附加信息。 請注意,如果您只希望在輸出中使用HTTP標頭,則可能需要-i/- include選項。

如果你覺得這個選項仍然沒有給你足夠的細節,可以考慮使用--trace或--trace-ascii碼代替。

此選項將覆蓋--trace-ASCII或--trace先前使用。