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