Get header
The Get header Action in the Avo Assure is found under the WebService List Element Name. It instructs the Avo Assure Client to fetch the response's header after executing the request and save the result in the output variable.
Syntax
Input: <Header Key>
Header Key: A Header Key in an API is extra information sent with a request or response by user, like a tag, to explain things like security or data format.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)

Usecase/Example

Scenario
In API testing, after logging in with the correct credentials, the response gives an Authorization token in the header. User retrieve this token and use it for future requests to check that it's working properly and secure. This makes sure the token is valid and follows security rules.
Expected Result
The Get header Action needs to fetch the response's header after executing the request.
Output
The Get header Action is fetch the responses Authorization token in the header and store the result in {getheader} output variable.
Last updated
Was this helpful?