curl请求指定域名解析的内网某ip

663 阅读1分钟

curl请求指定host ip 指定域名解析的内网某ip

curl -X GET \  
'http://12.98.200.60/api/template?product=qsc&scene=3&subscene=1&action=0' \  
-H 'Cache-Control: no-cache' \  
-H 'Postman-Token: c0a1c511-9908-4a38-ad20-11203a43ad5d' \  
-H 'Host:api-baidu.app.com'

 

相当于: vim /etc/hosts

12.98.200.60 api-bd.app.com