linux中通过curl命令绑定host访问网页的方法:
例子:
假设访问页面地址为: http://www.abc.com/test.jsp
www.abc.com 域名解析到ip: 192.168.0.1 则curl访问方式为如下:
curl -H "Host:www.abc.com" "http://192.168.0.1/test.jsp"
linux中通过curl命令绑定host访问网页的方法:
例子:
假设访问页面地址为: http://www.abc.com/test.jsp
www.abc.com 域名解析到ip: 192.168.0.1 则curl访问方式为如下:
curl -H "Host:www.abc.com" "http://192.168.0.1/test.jsp"
转载于:https://my.oschina.net/u/188625/blog/104740