show-headers.md (987B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: show-headers 5 Short: i 6 Help: Show response headers in output 7 Protocols: HTTP FTP 8 Category: important verbose output 9 Added: 4.8 10 Multi: boolean 11 See-also: 12 - verbose 13 - dump-header 14 Example: 15 - -i $URL 16 --- 17 18 # `--show-headers` 19 20 Show response headers in the output. HTTP response headers can include things 21 like server name, cookies, date of the document, HTTP version and more. With 22 non-HTTP protocols, the "headers" are other server communication. 23 24 This option makes the response headers get saved in the same stream/output as 25 the data. --dump-header exists to save headers in a separate stream. 26 27 To view the request headers, consider the --verbose option. 28 29 Prior to 7.75.0 curl did not print the headers if --fail was used in 30 combination with this option and there was an error reported by the server. 31 32 This option was called --include before 8.10.0. The previous name remains 33 functional.