SetRequestHeaders – PB Docs 2019

SetRequestHeaders

PowerScript function

Description

Sets all of the request headers.

Applies to

HTTPClient and RestClient objects

Syntax

Argument

Description

objectname

The name of the HTTPClient or RestClient object in which
you want to set the request header

headers

A string whose value is the information of all of the
headers

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.

Examples

See also

ClearRequestHeaders

GetRequestHeader

GetRequestHeaders

SetRequestHeader


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