--user-agent
- CLI
- --user-agent
- REST
- user_agent
Sets the User-Agent header and navigator.userAgent.
Example
zshot -f page.png \
--user-agent "Mozilla/5.0 (compatible; ExampleBot/1.0)" \
https://zshot-cli.com/example_assets/zemu/{
"url": "https://zshot-cli.com/example_assets/zemu/",
"output_type": "png",
"user_agent": "Mozilla/5.0 (compatible; ExampleBot/1.0)"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/","output_type":"png","user_agent":"Mozilla/5.0 (compatible; ExampleBot/1.0)"}' \
-o page.png