2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: dump-header
|
|
|
|
Short: D
|
|
|
|
Arg: <filename>
|
|
|
|
Help: Write the received headers to <filename>
|
|
|
|
Protocols: HTTP FTP
|
|
|
|
See-also: output
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http ftp
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --dump-header store.txt $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 5.7
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
2021-07-19 01:11:14 +08:00
|
|
|
Write the received protocol headers to the specified file. If no headers are
|
|
|
|
received, the use of this option will create an empty file.
|
2019-06-01 05:09:54 +08:00
|
|
|
|
2016-11-16 06:44:58 +08:00
|
|
|
When used in FTP, the FTP server response lines are considered being "headers"
|
|
|
|
and thus are saved there.
|
2022-12-13 02:44:35 +08:00
|
|
|
|
|
|
|
Having multiple transfers in one set of operations (i.e. the URLs in one
|
2022-12-22 22:22:11 +08:00
|
|
|
--next clause), will append them to the same file, separated by a blank line.
|