GetResponseHeader – PB Docs 2017

GetResponseHeader

PowerScript function

Description

Gets the response header by name.

Applies to

HTTPClient and RestClient objects

Syntax

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:

See also

GetResponseBody

GetResponseHeaders

GetResponseStatusCode

GetResponseStatusText


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x