Skip to content

Adding headers from an external file

dgtlmoon edited this page May 22, 2023 · 2 revisions

(0.43+) You can use extra headers to each request from a text file

The text-files are related to your main datastore directory

All of the options below work with Plaintext, Playwright/Browserless and possibly selenium (untested)

The text-file for headers so far is a simple flat text file, if you are using Docker you can mount this into your container with the -v command -v /local/path/headers.txt:/datastore/headers.txt

My-header: some value
Another-header: another-value

Global for all watches

/datastore/headers.txt

On a single watch

/datastore/d4e929f1-d467-491f-94e9-139537b9bd91/headers.txt

The UUID used above can be seen in the [Edit] link of the page in the UI (Or from the url-watches.json) data file

For any group tag

If your tag is something like Favourite then

/datastore/headers-favourite.txt