From a575601b5b0d6e0fa6843de74b5d1c69ee2bc262 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 May 2026 17:19:04 +0200 Subject: [PATCH] show-headers.md: mention bold headers and --no-styled-output Mentioned-by: Sollace on github Fixes #21495 Closes #21497 --- .github/scripts/pyspelling.words | 1 + docs/cmdline-opts/show-headers.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/scripts/pyspelling.words b/.github/scripts/pyspelling.words index 0c986f14c6..7d9f6ffb36 100644 --- a/.github/scripts/pyspelling.words +++ b/.github/scripts/pyspelling.words @@ -896,6 +896,7 @@ trustless Tse Tsujikawa TTL +tty tvOS txt typedef diff --git a/docs/cmdline-opts/show-headers.md b/docs/cmdline-opts/show-headers.md index d733784ac2..40c5ae790b 100644 --- a/docs/cmdline-opts/show-headers.md +++ b/docs/cmdline-opts/show-headers.md @@ -24,6 +24,12 @@ non-HTTP protocols, the "headers" are other server communication. This option makes the response headers get saved in the same stream/output as the data. --dump-header exists to save headers in a separate stream. +When HTTP headers are output to a tty, curl may use escape codes to make the +header field names appear in bold and URLs in `Location:` headers be +especially marked as such. Disable the use of terminal escape codes with +--no-styled-output. (This means using the --styled-output option with a +`--no-` prefix to disable it.) + 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