I am working with Delphi 10 Seattle. Following samples we developed a REST Client that communicated with a remote server to consume Rest API. The REST Client works end until we tried to set a custom timeout for Request object.
The following snippet is ours code:
LClient: = TRESTClient.Create (URL);
LRequest: = TRESTRequest.Create (nil);
LRequest.Client: = LClient;
LRequest.Resource: = FReqParams.Resource;
LRequest.Method: = TRESTRequestMethod.rmGET;
LRequest.Timeout: = 300000;
LRequest.Execute;
We have tried to set the time to a diffrent value from deafult one but the request always close the connection after 30 seconds (the default value).
Is there something we had missed?
Can someone help me?
Thank you!