Is it possible via batch to continuously check the availability of a downed web app which is being started (eg 192.168.1.4:8080) and print a message when the application is up.
Is it possible via batch to continuously check the availability of a downed web app which is being started (eg 192.168.1.4:8080) and print a message when the application is up.
Like what he saied @npocmaka in his comment you can use curl
@echo off
Mode 60,3
Title Check URL
Set "URL=https://www.stackoverflow.com"
:Check_URL
Cls
Curl -I -s "%URL%" | find /I "200">nul 2>&1 && (
color 0A
echo(
echo( "%URL%" ==^> is OK
) || (
color 0C
echo(
echo( "%URL%" ==^> Not OK
)
Timeout /T 10 /NoBreak>nul
Goto Check_URL