--har
- CLI
- --har
- REST
- with_har
Writes a HAR of the page’s network activity alongside the render. On the server, the HAR is returned as a Link response header.
Warning: Archives Contain Credentials
A HAR records every credential seen on the wire, including session cookies, bearer tokens and OAuth tokens the visited site issues. There is no redaction option.
Example
zshot -f zemu.png \
--har archive.har \
https://zshot-cli.com/example_assets/zemu/index.html{
"url": "https://zshot-cli.com/example_assets/zemu/index.html",
"output_type": "png",
"with_har": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/index.html","output_type":"png","with_har":true}' \
-D - -o zemu.png