Schttpwebrequest response

Schttpwebrequest response

In order to get data returned by the server, you need to handle HttpException. To do this, please try doing the following:
  try
    Response := ScHttpWebRequest1.GetResponse; 
  except
    on E:HttpException do
      showmessage(E.ServerMessage);
  end;
In this case, E.ServerMessage will contain all data returned by the server. 

    • Related Articles

    • TScHttpWebResponse (accented characters)

      Method ScHttpWebRequest1.GetResponse.ReadAsString expects response to have a UTF-8 encoding, and decodes them as UTF-8.  You may get response content "as-is" by using -ScHttpWebRequest1.GetResponse.ReadAsBytes ...
    • How do I check the status of my support ticket?

      If you've submitted a support ticket and want to track its progress, you can easily check the status through your Devart account. Here's a quick guide to help you understand how to view your support ticket status: Access Your Support Tickets Log in ...