Get header
Last updated
Last updated
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.
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)
Note: If no value is entered in the input column, the entire header is saved in the output variable. If a specific key is entered as input, only the value for that key is saved in the output.
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.
The Get header Action needs to fetch the response's header after executing the request.
The Get header Action is fetch the responses Authorization token in the header and store the result in {getheader} output variable.