What is the best Rest Client component of TMS?

I testing your products for a new project.

I need to make a POST HTTP requests and send the body parameters, what is the best component or classes for it.

I see TTMSFNCRESTClient or TWebHttpRequest.

I tried to use TWebHttpRequest but don't worked for me is this code:

procedure TForm1.WebButton1Click(Sender: TObject);
Req.URL := 'https://www.valery.com/consoleApp/consulta_post_objeto.php';
Req.Headers.AddPair('Content-Type', 'application/x-www-form-urlencoded');
Req.Command := httpPOST;
Req.PostData := 'q=licencias&licencia=577567325071';

procedure TForm1.ReqResponse(Sender: TObject; AResponse: string);

The AResponse is empty but I tested with postman and work fine.

I don't know if I passed the body parameters bad or something

Another question:

What is the unit of TTMSFNCRESTClient to put at uses section.

Please help me

The TTMSFNCRESTClient is cross-platform and can be used on all supported platforms with the same code base, while the TWebHttpRequest is only for VCL Windows applications.

TMS FNC REST Client is part of the TMS FNC Cloud Pack.

I've tested this with the TTMSFNCRestClient and was able to retrieve the information.
The unit for this is FMX.TMSFNCRESTClient or you can change the prefix to VCL if you are using this in the VCL framework.

  TMSFNCRESTClient1.Request.URL := 'https://www.valery.com/consoleApp/consulta_post_objeto.php';
  TMSFNCRESTClient1.Request.Headers.AddHeader('Content-Type', 'application/x-www-form-urlencoded');
  TMSFNCRESTClient1.Request.Method := rmPOST;
  TMSFNCRESTClient1.Request.PostData := 'q=licencias&licencia=xxx';

And the response is retrieved as the AResultString parameter in the OnRequestResponseRetrieved event.