Skip to content

ResponseHeader - cBaseHTTPTransfer

Returns the value for a named http response header

Type: Function
Return Data Type: String

Parameters

Parameter Type Description
sHeaderName String sHeaderName is the name of the response header,
iIndex Integer iIndex is the zero based index of the header in the case where there are multiple headers with the same name, zero otherwise.

Syntax

Function ResponseHeader String sHeaderName Integer iIndex Returns String

Call Example

Get ResponseHeader sHeaderName iIndex to StringVariable

Description

ResponseHeader is used to get information from an http response header.

Get ResponseHeader of oHttp "content-length" 0 to sContent

Get ResponseHeader of oHttp "status" 0 to sStatus0
Get ResponseHeader of oHttp "status" 1 to sStatus1