Get the value of response header.
Text
- Specifies the header name (e.g. Content-Type
).Text
- Specifies the variable, that will be filled with header value, if the header was found.Boolean
- True if the header was found, false otherwise.
//Check and get the header value
if not ApiScriptRWU.GET_RESPONSE_HEADER('Content-Type',HeaderValue) then
Error('Response should contain Content-Type header');
Function does not work properly with paginated result – it returns data from last page only.