linux中通过curl命令绑定host访问网页的方法

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"

posted @ 2013-01-25 14:31  DoAgain  阅读(5880)  评论(0)    收藏  举报