schttpwebrequest response
Posted: Wed 18 Aug 2021 09:03
Hi,
i use the schttpwebrequest to connect one URL in delphi program
it can receive the response when the response is:
{
"success": true
}
however, it raise exception (Bad Request) when the server return the below message:
{
"success": false,
"error": "Given code / id does not exists "
}
the error happens in the below code:
Response := ScHttpWebRequest1.GetResponse;
Anyone know how can i get/read the data returned from the server?
Thank You.
i use the schttpwebrequest to connect one URL in delphi program
it can receive the response when the response is:
{
"success": true
}
however, it raise exception (Bad Request) when the server return the below message:
{
"success": false,
"error": "Given code / id does not exists "
}
the error happens in the below code:
Response := ScHttpWebRequest1.GetResponse;
Anyone know how can i get/read the data returned from the server?
Thank You.