aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/include.md
blob: aedf5da0bb38f37a856604a4a86459590fa9ed5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: include
Short: i
Help: Include protocol response headers in the output
Protocols: HTTP FTP
Category: important verbose
Added: 4.8
Multi: boolean
See-also:
  - verbose
Example:
  - -i $URL
---

# `--include`

Include response headers in the output. HTTP response headers can include
things like server name, cookies, date of the document, HTTP version and
more... With non-HTTP protocols, the "headers" are other server communication.

To view the request headers, consider the --verbose option.

Prior to 7.75.0 curl did not print the headers if --fail was used in
combination with this option and there was error reported by server.