Useful Curl command

By | October 4, 2017

Ever write an F5 iRule and need to test it against a test VIP but you need to pass the hostname without wanting to update your host file and use a traditional browser?  Well curl to the rescue.  See below:

curl -v -H “Host: www.mytestdomain.com” http://61.62.63.44/test/uri

This has the added benefit of giving you header information as well as a detailed response to ensure you are getting the desired results.