Skip to content

Instantly share code, notes, and snippets.

@j4mie
Created October 21, 2009 12:19
Show Gist options
  • Save j4mie/215069 to your computer and use it in GitHub Desktop.
Save j4mie/215069 to your computer and use it in GitHub Desktop.
Command to check whether a server returns a different headers for a HEAD request than a GET.
site=http://www.facebook.com; diff <(curl -I ${site}) <(curl -i ${site} | sed '/^\r$/ q')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment