dump-header.d 610 B

12345678910111213141516171819
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, 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. ---
  13. Write the received protocol headers to the specified file. If no headers are
  14. received, the use of this option will create an empty file.
  15. When used in FTP, the FTP server response lines are considered being "headers"
  16. and thus are saved there.
  17. If this option is used several times, the last one will be used.