用curl通过相同IP请求不同域名的URL

tomcat可以从一个IP响应不同的域名。

$ curl -I http://127.0.0.1:8080  -H "Host:w.example.com"

可以影响http的host header。

原文地址:https://www.cnblogs.com/silvestris/p/5163946.html