Benutzer-Werkzeuge

Webseiten-Werkzeuge


comp:checkmyufzde

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

comp:checkmyufzde [2015-03-30 0736] – angelegt wernercomp:checkmyufzde [2015-03-30 0759] (aktuell) – zusätzlich curl werner
Zeile 68: Zeile 68:
 # get the content to check and store it inside the temporary file # get the content to check and store it inside the temporary file
 USERAGENT='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0' USERAGENT='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0'
-wget -q "https://$host/+CSCOE+/logon.html" --no-check-certificate -U "$USERAGENT" -O "$FINA"+# use either wget or curl, see what we have 
 +if [ -x /usr/bin/wget ]; then 
 +    /usr/bin/wget -q "https://$host/+CSCOE+/logon.html" --no-check-certificate -U "$USERAGENT" -O "$FINA" 
 +elif [ -x /usr/bin/curl ]; then 
 +    /usr/bin/curl -1 -k -L -s -A "$USERAGENT" -o "$FINA" "https://$host/+CSCOE+/logon.html" 
 +fi
  
 # how long is the answer? # how long is the answer?
comp/checkmyufzde.txt · Zuletzt geändert: 2015-03-30 0759 von werner

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki