GetResponseHeader
PowerScript function
Description
Gets the response header by name.
Applies to
HTTPClient and RestClient objects
Syntax
|
1 |
objectname.GetResponseHeader ( headerName ) |
|
Argument |
Description |
|---|---|
|
objectname |
The name of the HTTPClient or RestClient object in which |
|
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:
|
1 2 3 4 |
String ls_ContentType HttpClient lnv_HttpClient lnv_HttpClient = Create HttpClient ls_ContentType = lnv_HttpClient.GetResponseHeader("Content-Type") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest