I'm trying to consume a simple API just for test, but it doesn't work using Delphi Rest Clients components.
Call to API works using browser and Postman without any configuration. The URL is https://api.cartolafc.globo.com/mercado/status
First I've tried use the tool "Rest Debugger" and it returns nothing.
So I tried to use the trio of REST CLIENT components by doing the following steps:
- Created a new project;
- Added
TRestClient
,TRestRequest
andTRestResponse
components; - Configured
BaseURL
fromTRestClient
as "https://api.cartolafc.globo.com/mercado/status" - Clicked the right mouse button on the
TRESTRequest
component - Hit
Execute...
command
It returns the following error:
Error receiving data: (12152) the server returned an invalid or unrecognized response
Did I do something wrong?