Skip to content

Instantly share code, notes, and snippets.

@62mkv
Created November 19, 2016 13:22
Show Gist options
  • Save 62mkv/15a82e6db93656558f9a0de19e64b6d5 to your computer and use it in GitHub Desktop.
Save 62mkv/15a82e6db93656558f9a0de19e64b6d5 to your computer and use it in GitHub Desktop.
check if web-server responds on request
#!/bin/bash
curl -v http://u.rl/path/; echo $?
# -v prints headers; $? is an exit code of last called command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment