Curl Header Response

is there a way to get the response header from a curl into a variable?
The response header of my request contains information I need to use in another rule.

Please show us how you use curl in a rule.

1 Like

Yes …

Example for BASH



curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d $RESPONSE_VAR "http://OPENHAB_IP:PORT/rest/items/OPENHAB_ITEM"

Perhaps you must modify or transform the Response, this is only an Example