#1 2023-07-21 09:12:25

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

howto quick check if Server is available

May be this is already discussed, but i don't know...

Im looking for an fast and resource - saving way to check if my Server is reachable.
like a ping.
is there something contained in mormot ?


Rad Studio 12.1 Santorini

Offline

#2 2023-07-21 09:22:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: howto quick check if Server is available

You can just call the /##root##/timestamp URI via a HTTP GET.

You can make a call as

if client.CallBackGet('timestamp', [], resp) = 200 then OK

This endpoint should always be available, even if full security is activated on the REST server.

Offline

#3 2023-07-21 09:45:26

keinn
Member
Registered: 2014-10-20
Posts: 103

Re: howto quick check if Server is available

TRestClientUri.ServerTimestampSynchronize will do

Offline

#4 2023-07-21 12:10:58

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: howto quick check if Server is available

ty


Rad Studio 12.1 Santorini

Offline

Board footer

Powered by FluxBB