dump-header.d 697 B

123456789101112131415161718192021
  1. c: Copyright (C) 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. When used in FTP, the FTP server response lines are considered being "headers"
  17. and thus are saved there.
  18. Having multiple transfers in one set of operations (i.e. the URLs in one
  19. --next clause), will append them to the same file, separated by a blank line.