xref: /curl/docs/cmdline-opts/include.md (revision fe9f68fa)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: include
5Short: i
6Help: Include response headers in output
7Protocols: HTTP FTP
8Category: important verbose
9Added: 4.8
10Multi: boolean
11See-also:
12  - verbose
13Example:
14  - -i $URL
15---
16
17# `--include`
18
19Include response headers in the output. HTTP response headers can include
20things like server name, cookies, date of the document, HTTP version and
21more... With non-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