Description
Gets the response header by name.
Applies to
HTTPClient and RestClient objects
Syntax
objectname.GetResponseHeader ( headerName )
Argument |
Description |
---|---|
objectname |
The name of the HTTPClient or RestClient object in which you want to get the response headers |
headerName |
A string whose value is the header name |
Return value
String.
Returns the value related to the specified header. If any argument's value is null, the method returns null.
Examples
This example obtains the information of the "Content-Type" header:
String ls_ContentType HttpClient lnv_HttpClient lnv_HttpClient = Create HttpClient ls_ContentType = lnv_HttpClient.GetResponseHeader("Content-Type")
See also