Created
October 26, 2012 21:44
-
-
Save ifnull/3961743 to your computer and use it in GitHub Desktop.
CURL IP w/ specific host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bypass HOSTS file and DNS and send request directly to IP with specified host name. | |
# Example below sends request to localhost with the host name www.foobar.com. | |
curl -sL -w "%{http_code}\\n" -o /dev/null --insecure --resolve 'www.foobar.com:127.0.0.1' https://www.foobar.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment