I realise now I gave a poor example of ‘headers’ scripting - that was in javascript, not the DSL language you’re currently using.
Looking for a DSL example led me to this …
The upshot seems to be that headers are not supported in OH2 actions, and mention of them snuck into OH2 docs in error.
I don’t think this is going to work this way. You may be forced to use an external script after all (probably a bash script using curl).