[URL-Check] Added python version
This commit is contained in:
parent
dff498cf3f
commit
f6819a957f
@ -1,25 +0,0 @@
|
||||
#!/usr/bin/csh -f
|
||||
set MODE=$1
|
||||
set CURL=/usr/bin/curl
|
||||
|
||||
if ($MODE == no_auth) then
|
||||
set URL=$2
|
||||
set HS=$3
|
||||
set STATUS=`$CURL -L -o /dev/null -s -w "%{http_code}\n" -m 1 $URL`
|
||||
|
||||
else if ($MODE == auth) then
|
||||
set AUTH=$2
|
||||
set URL=$3
|
||||
set HS=$4
|
||||
set STATUS=`$CURL -L -o /dev/null -s -w "%{http_code}\n" -m 1 --user $AUTH $URL`
|
||||
|
||||
else
|
||||
exit 1
|
||||
endif
|
||||
|
||||
if ($STATUS == 200) then
|
||||
$CURL -fsS --retry 3 $HS > /dev/null
|
||||
else
|
||||
exit 1
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user