Skip to content

Instantly share code, notes, and snippets.

@rvflash
Created December 12, 2018 11:04
Show Gist options
  • Save rvflash/dfde0a81b27b4bce115cfcd7bbef9df7 to your computer and use it in GitHub Desktop.
Save rvflash/dfde0a81b27b4bce115cfcd7bbef9df7 to your computer and use it in GitHub Desktop.
Override the hostname (ip force)
#!/usr/bin/env bash
curl -sL -w "%{http_code} %{url_effective} (%{time_total})\\n" -H 'Host: example.com' "http://localhost:8080/" -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment