• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: dump-header
5Short: D
6Arg: <filename>
7Help: Write the received headers to <filename>
8Protocols: HTTP FTP
9Category: http ftp
10Added: 5.7
11Multi: single
12See-also:
13  - output
14Example:
15  - --dump-header store.txt $URL
16---
17
18# `--dump-header`
19
20Write the received protocol headers to the specified file. If no headers are
21received, the use of this option creates an empty file.
22
23When used in FTP, the FTP server response lines are considered being "headers"
24and thus are saved there.
25
26Having multiple transfers in one set of operations (i.e. the URLs in one
27--next clause), appends them to the same file, separated by a blank line.
28