When using IDHTTP to send POST commands with JSON variables, sometimes the server returns me the exception below :
HTTP/1.1 500 Internal Server Error
I know this is a server side error and probably there is something wrong with my request JSON data.
BUT if i run the same POST command using Chrome, the browser will show a more detailed error in the page content, instead of the simple HTTP 500. Is there a way to also receive these details using IDHTTP ?
Here is an example of my code :
idhttp1.Request.ContentType := 'application/json';
idhttp1.post(URL, JsonToSend); //this line will throw the exception