Horje
Batch programming check http call status Code Example
Batch programming check http call status
SET SOME_URL="https://my/api/to/get/something"
SET HTTP=
for /f %%a in ( 'curl -k -s -o NUL -w "%%{http_code}" "%SOME_URL%"' ) do set HTTP=%%a
if "%HTTP%" == "200" (
  echo "SUCCESS."
  REM Do rest of you stuff here
) else (
  echo "FAIL."
  REM Do any kind of cleanups
  exit /b
)




Shell

Related
ssh welcome message ubuntu Code Example ssh welcome message ubuntu Code Example
daily bing ubuntu Code Example daily bing ubuntu Code Example
lancer gradle en bash Code Example lancer gradle en bash Code Example
pip install geoip2 Code Example pip install geoip2 Code Example
heroku clone database local Code Example heroku clone database local Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15