Skip to content

Instantly share code, notes, and snippets.

@julianvargasalvarez
Created November 26, 2013 04:07
Show Gist options
  • Save julianvargasalvarez/7653321 to your computer and use it in GitHub Desktop.
Save julianvargasalvarez/7653321 to your computer and use it in GitHub Desktop.
#!/bin/sh
status () {
echo "$(curl -Is -X GET $1 | head -n 1 | cut -d' ' -f2) $2"
}
status https://www.google.com.co/ google
status https://github.com/ github
status http://things.ubidots.com/api/v1.6/ ubidots_api_1.6
status http://things.ubidots.com/api/v1.5/ ubidots_api_1.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment