先峰老师

关注

curl 带host访问两种方式

先峰老师

关注

阅读 60

2023-04-11


 

curl --silent -H "Host: www.xxxx.com"  "hostname/xxxx/xxxx.htm"

这种方式与windows中更改hosts文件,指定域名对应用的具体host的ip是一样的,

curl http://ww.xxxx.com/xxxx/xxxx.htm -xhostname:80

与上面的方式区别不是很大.

 


相关推荐

胡桑_b06e

openresty 两种安装方式

胡桑_b06e 104 0 0

生活记录馆

两种方式实现分页

生活记录馆 124 0 0

Python百事通

adb 两种连接方式

Python百事通 85 0 0

驚鴻飛雪

softmax两种实现方式

驚鴻飛雪 85 0 0

7dcac6528821

SprintAOP两种使用方式

7dcac6528821 80 0 0

狗啃月亮_Rachel

Ajax+PHP实现跨域访问的两种方式

狗啃月亮_Rachel 140 0 0

alonwang

springboot两种打包部署方式

alonwang 102 0 0

扒皮狼

Lua两种方式操作MySQL

扒皮狼 43 0 0

phpworkerman

gulp两种配置方式总结

phpworkerman 90 0 0

Fifi的天马行空

打开页面的两种方式

Fifi的天马行空 123 0 0

精彩评论(0)

0 0 举报