Download
- Output type
- download
Downloads raw response bytes without rendering. The output file extension is inferred from the response MIME type, defaulting to .bin when unrecognized and unspecified.
API Usage
The HTTP API response echoes the upstream Content-Type.
Example
zshot -t download https://zshot-cli.com/example_assets/zrm/leads.csv{
"url": "https://zshot-cli.com/example_assets/zrm/leads.csv",
"output_type": "download"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zrm/leads.csv","output_type":"download"}' \
-o leads.csv