Hi I am using TScHttpWebRequest and TScHttpWebResponse to get info, It works, but when fails I would like to show the error in a correct way to the user. How can I handle the StatusCode error?
Request: TScHttpWebRequest;
Response: TScHttpWebResponse;
try
Response := Request.GetResponse;
Output := Response.ReadAsString;
except
on E:Exception do
begin
// Here I would like to get the StatusDescription or the StatusValue
end;
end;
TScHttpWebRequest StatusCode How to display Status Value and Description
-
- Posts: 9
- Joined: Fri 20 Jul 2018 16:45
Re: TScHttpWebRequest StatusCode How to display Status Value and Description
Such question has already been answered on our forum:
viewtopic.php?f=27&t=38544
Feel free to contact us if you need any further assistance.
viewtopic.php?f=27&t=38544
Feel free to contact us if you need any further assistance.
-
- Posts: 9
- Joined: Fri 20 Jul 2018 16:45
Re: TScHttpWebRequest StatusCode How to display Status Value and Description
Glad to see that the issue was resolved.
Feel free to contact us if you have any further questions about our products.
Feel free to contact us if you have any further questions about our products.