Advertisement
deseven

HTTP test

Aug 24th, 2016
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. # From Germany to Russia:
  2. while true; do; res=""; res=$(curl -4 -s --max-time 10 -L -H 'Host: help.home-nadym.ru' "http://195.191.221.2/" | grep "ru/InternetCab"); if [ -z "$res" ]; then echo -n '!'; else echo -n '.'; fi; done;
  3.  
  4. # From Russia to Germany:
  5. while true; do; res=""; res=$(curl -4 -s --max-time 10 -H 'Host: ru.myplan.travel' "http://46.101.239.161/" | grep '<title>My Travel Plan</title>'); if [ -z "$res" ]; then echo -n '!'; else echo -n '.'; fi; done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement