Skip to content

Instantly share code, notes, and snippets.

@fongreecss
Created May 17, 2016 20:27
Show Gist options
  • Save fongreecss/3a865df089ed872869554d8a22d5be66 to your computer and use it in GitHub Desktop.
Save fongreecss/3a865df089ed872869554d8a22d5be66 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -sL -w "%{http_code} %{url_effective}\\n" "INSERTURLHERE" -o /dev/null
#url - %{url_effective}
#code - %{http_code}
#inserturlhere - http://google.com for example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment