dump-header.d 697 B

1234567891011121314151617181920
  1. Long: dump-header
  2. Short: D
  3. Arg: <filename>
  4. Help: Write the received headers to <filename>
  5. Protocols: HTTP FTP
  6. See-also: output
  7. ---
  8. Write the received protocol headers to the specified file.
  9. This option is handy to use when you want to store the headers that an HTTP
  10. site sends to you. Cookies from the headers could then be read in a second
  11. curl invocation by using the --cookie option! The --cookie-jar option is a
  12. better way to store cookies.
  13. If no headers are received, the use of this option will create an empty file.
  14. When used in FTP, the FTP server response lines are considered being "headers"
  15. and thus are saved there.
  16. If this option is used several times, the last one will be used.