header, value, api, request, response, send, soap, rest, get, post, put, delete

Method GetHeaderValue

API

Returns response header value

Watch this video to learn how to use this method

Have a problem with playback?
GetHeaderValue method provides you the value of data storing below the given header. Prior to use this function you need to insert Execute method. The input of this method is a name of the header. The output is the string data value. To check what headers suitable for current API method you can use GetHeaderNames function first. Let's see what is the value of "Date" header. We will use messagebox to demonstrate the output. We can see that the correct date and time is the value of the "Date" header.

Usage

Function GetHeaderValue(
    String HeaderName
)

Method

GetHeaderValue

Server

HeaderName

Parameters

HeaderName

Type: String

Header Name

Returns

Header Value

Example

VBScript

Server("API Server").Method("Method").Execute
' Execute method should be called before get header value
headerValue = Server("API Server").Method("Method").GetHeaderValue("Server")

JavaScript

Server("API Server").Method("Method").Execute();
// Execute method should be called before get header value
var headerValue = Server("API Server").Method("Method").GetHeaderValue("Server");

Method

Execute

Comment

Execute method should be called before get header value

Method

GetHeaderValue

Server

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227