zshot/cliDownload

--header

CLI
--header, -H
REST
header
ValueHEADER

Sends a header, as Name: value, on each main-frame navigation within the target’s registrable domain. Repeatable.

Scope

The header follows a crawl or navigator session across same-site pages and subdomains. Subresource requests and navigations to another registrable domain go without it, so it never reaches third-party hosts. Cookies from --cookie follow cookie-jar rules instead and reach any matching request.

Under --server it is a default for requests that send no header. Under --cdp it is ignored; set headers from the CDP client, such as with Network.setExtraHTTPHeaders.

Example

Run locally
zshot -f page.png \
  -H "X-Internal-Header: true" \
  https://zshot-cli.com/example_assets/hello_zshot/