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

GetResponseBody – PB Docs 2019 – PowerBuilder Library

GetResponseBody – PB Docs 2019

GetResponseBody

PowerScript function

Description

Gets the response body into a string or blob value.

It is not recommended to use this method to process large data (20
MB or 100,000 data rows can be considered as large data based on our
tests).

Applies to

HTTPClient
objects

Syntax

Argument

Description

objectname

The name of the HTTPClient object for which you want to
get the response body.

data

A string or blob variable into which the function returns
the data.

For the string data, if the encoding charset is specified
in the Content-Type response header, this function will encode
the data with the specified charset; if charset is not
specified, this function determines the encoding type based on
the BOM header, and then converts the data into UNICODE.

encodingType

A value specifying the encoding type of the string data to
be received: EncodingANSI!, EncodingUTF8!, EncodingUTF16LE!, or
EncodingUTF16BE!.

If this argument is set, the encoding charset in the
Content-Type response header will be ignored.

Return value

Integer.

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

1 — Success

-1 — General error

-2 — Code conversion failed

Example

This example gets the response body and converts to a blob
value:

See also

GetResponseHeader

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