Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 3: for ResourceResponse objects – PB Docs 2019 – PowerBuilder Library

Syntax 3: for ResourceResponse objects – PB Docs 2019

Syntax 3: for ResourceResponse objects

Description

Gets the response body into a string.

Applies to

ResourceResponse objects

Syntax

Argument

Description

objectname

A reference to the ResourceResponse object in which you
want to get the response body.

data

A string or blob variable into which the function
returns data. The following data encodings are supported:
EncodingANSI!, EncodingUTF8!, EncodingUTF16LE! and
EncodingUTF16BE!.

encodingType

An encoding value specifying the data which is converted
to EncodingUTF16LE!.

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 GetBody function to get
the response body of string data type:

The following example shows the use of the GetBody function to get
the response body of string data type in encodingUTF8!:

The following example shows the use of the GetBody function to get
the response body of blob data type:

See also

GetHeader

GetHeaders

GetStatusCode

GetStatusText


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