]> git.ipfire.org Git - thirdparty/curl.git/commit
docs: document default `User-Agent`
authorBrendon Smith <bws@bws.bio>
Sun, 17 Nov 2024 21:38:31 +0000 (16:38 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 17 Nov 2024 23:03:10 +0000 (00:03 +0100)
commitdada880fc52f9cfb48bc652a42c06bfb26a91482
tree162035ec930a9c6f8465ba8d9238f5df904545cc
parentca6d3d2e9b5814d126445b1d0667c140037327a0
docs: document default `User-Agent`

curl offers a `--user-agent` option for modifying the `User-Agent`
header supplied in its requests.

The man page section for this option explains how to use the
`--user-agent` option, but does not explain which `User-Agent` curl uses
by default.

By default, curl uses curl/VERSION, such as `User-Agent: curl/8.11.0`.

Note that this appears to be different from the libcurl default (no
User-Agent header).

This commit documents the default `User-Agent` in the man page section
for the `--user-agent` option, as well as on the "Art of Scripting"
page.

The `%VERSION` placeholder will be used to insert the current version
as described in the man page generator docs.

Closes #15608
docs/TheArtOfHttpScripting.md
docs/cmdline-opts/user-agent.md