curl

When testing web servers you must occasionally be explicit as to what web site you’re asking for. This is done using Server Name Indication, or SNI. When testing What-Ifs, you must sometimes send the wrong name to see what the response is.

For curl, you use the --resolve flag for that.

# If you want to test the SNI function, use  --resolve
curl -k -I --resolve cms.yourdomain.com:443:127.0.0.1 --header 'Host: cms.yourdomain.com' https://cms.yourdomain.com

Last modified April 14, 2026: Old site imports (677647f)