Capturing Response Headers in the REST Plugin
To capture HTTP response headers from the REST plugin, simply create a user defined output for each header you want to save. All response headers from the HTTP request will be available to be used as plugin outputs, so they can be easily accessed.
Defining Workflow Variables for Headers
To get started, first define the workflow variables that will store the header values. These variables will be accessible to the workflow.
In the workflow editor, click the variables icon, then define the variables that will store your header values.
Defining Plugin Outputs
Next, define the plugin outputs that will store the headers in the workflow variables we just created. Open your REST plugin step in the workflow, then select the “User Output” tab. Here, specify the header name in the “Plugin Output” field, and the workflow variable you want to use in the “Workflow Variable” field. Only headers defined here will be available as plugin outputs.
Now you can use the workflow variables in subsequent workflow steps.
- style