GetResponseStatusText
PowerScript function
Description
Gets the response status description.
Applies to
HTTPClient and RestClient objects
Syntax
|
1 |
objectname.GetResponseStatusText ( ) |
|
Argument |
Description |
|---|---|
|
objectname |
The name of the HTTPClient or RestClient object for which |
Return value
String.
Returns the response status description.
Examples
This example gets the response status description:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Integer li_rc, li_StatusCode String ls_StatusText Blob lblb_blob HttpClient lnv_HttpClient lnv_HttpClient = Create HttpClient // Send request using GET method li_rc = lnv_HttpClient.SendRequest("GET", " https://demo.appeon.com/PB/webapi_client/employee/102") // Obtain the response message if li_rc = 1 then // Obtain the response status li_StatusCode = lnv_HttpClient.GetResponseStatusCode() ls_StatusText = lnv_HttpClient.GetResponseStatusText() // Obtain the response data lnv_HttpClient.GetResponseBody(lblb_blob) … end if |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest