SetRequestHeader – PB Docs 2018

SetRequestHeader

PowerScript function

Description

Sets the request header.

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

headerName

A string whose value is the header
name

headerValue

A string whose value is the header
value

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

This example constructs a GET request which supports all header
settings:

See also

ClearRequestHeaders

GetRequestHeader

GetRequestHeaders

SetRequestHeaders


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