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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.