SetBody – PB Docs 2017

SetBody

PowerScript function

Description

Sets the request body.

Applies to

OAuthRequest objects

Syntax

Argument

Description

objectname

A reference to the OAuthRequest object in which you want
to set the request body.

data

A string or blob specifying the data. The data will be
converted to EncodingUTF8!.

encodingType

An encoding value specifying the string data.

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

The following example shows the use of the SetBody function to set
the request body of string data type:

The following example shows the use of the SetBody function to set
the request body of string data type in encodingUTF8!:

The following example shows the use of the SetBody function to set
the request body of blob data type:

See also

ClearHeaders

GetBody

GetHeader

GetHeaders

SetAccessToken

SetHeader

SetHeaders


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