If the server reports that the requested page has moved to a different
location (indicated with a Location: header and a 3XX response code), this
option makes curl redo the request on the new place. If used together with
---include or --head, headers from all requested pages are shown.
+--show-headers or --head, headers from all requested pages are shown.
When authentication is used, curl only sends its credentials to the initial
host. If a redirect takes curl to a different host, it does not get the
- show-headers
- proxytunnel
Example:
- - --suppress-connect-headers --include -x proxy $URL
+ - --suppress-connect-headers --show-headers -x proxy $URL
---
# `--suppress-connect-headers`
When --proxytunnel is used and a CONNECT request is made do not output proxy
-CONNECT response headers. This option is meant to be used with --dump-header or
---include which are used to show protocol headers in the output. It has no
-effect on debug options such as --verbose or --trace, or any statistics.
+CONNECT response headers. This option is meant to be used with --dump-header
+or --show-headers which are used to show protocol headers in the output. It
+has no effect on debug options such as --verbose or --trace, or any
+statistics.
by curl, \< means header data received by curl that is hidden in normal cases,
and a line starting with * means additional info provided by curl.
-If you only want HTTP headers in the output, --include or --dump-header might
-be more suitable options.
+If you only want HTTP headers in the output, --show-headers or --dump-header
+might be more suitable options.
Since curl 8.10, mentioning this option several times in the same argument
increases the level of the trace output. However, as before, a single