dump-header.md (1070B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: dump-header 5 Short: D 6 Arg: <filename> 7 Help: Write the received headers to <filename> 8 Protocols: HTTP FTP 9 Category: http ftp 10 Added: 5.7 11 Multi: single 12 See-also: 13 - output 14 Example: 15 - --dump-header store.txt $URL 16 - --dump-header - $URL -o save 17 --- 18 19 # `--dump-header` 20 21 Write the received protocol headers to the specified file. If no headers are 22 received, the use of this option creates an empty file. Specify `-` as 23 filename (a single minus) to have it written to stdout. 24 25 Starting in curl 8.10.0, specify `%` (a single percent sign) as filename 26 writes the output to stderr. 27 28 When used in FTP, the FTP server response lines are considered being "headers" 29 and thus are saved there. 30 31 Starting in curl 8.11.0, using the --create-dirs option can also create 32 missing directory components for the path provided in --dump-header. 33 34 Having multiple transfers in one set of operations (i.e. the URLs in one 35 --next clause), appends them to the same file, separated by a blank line.