xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: dump-header |
| 4 | Short: D |
| 5 | Arg: <filename> |
| 6 | Help: Write the received headers to <filename> |
| 7 | Protocols: HTTP FTP |
| 8 | See-also: output |
| 9 | Category: http ftp |
| 10 | Example: --dump-header store.txt $URL |
| 11 | Added: 5.7 |
| 12 | Multi: single |
| 13 | --- |
| 14 | Write the received protocol headers to the specified file. If no headers are |
| 15 | received, the use of this option will create an empty file. |
| 16 | |
| 17 | When used in FTP, the FTP server response lines are considered being "headers" |
| 18 | and thus are saved there. |