sh 卷曲技巧和窍门

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 卷曲技巧和窍门相关的知识,希望对你有一定的参考价值。

# -H sets the header
# -v includes the header information
# /dev/null pipes the contents of the page output into a blackhole
curl -v http://<server-host_or_ip>/ -H "Host: domain.com" > /dev/null

# Example
curl -v https://localhost/ -H "Host: www.dentalmanagers.com" > /dev/null
curl -v http://appserver-4/ -H "Host: www.1111dental.com" > /dev/null
curl -v http://appserver-4/ -H "Host: test.roadsidedentalmarketing.com" > /dev/null

# View the HTML output
curl -v https://localhost/ -H "Host: www.dentalmanagers.com" | less

# Connect to loadbalancer (use HTTPS directly)
# Use HTTPS protocol, bypass cache
curl -v https://loadbalancer-production-alpha-1/ -H "Host: test.roadsidedentalmarketing.com" -H "X-Forwarded-Proto: https" -H "X-Cache-Bypass: true" --insecure  > /dev/null
## see html returned
curl -v https://loadbalancer-production-alpha-1/ -H "Host: test.roadsidedentalmarketing.com" -H "X-Forwarded-Proto: https" -H "X-Cache-Bypass: true" --insecure  | less

# Connect to app server using http with https added as a header
curl -v http://akkala-4/ -H "Host: test.roadsidedentalmarketing.com" -H "X-Forwarded-Proto: https" -H "X-Cache-Bypass: true" > /dev/null
## see html returned
curl -v http://akkala-4/ -H "Host: test.roadsidedentalmarketing.com" -H "X-Forwarded-Proto: https" -H "X-Cache-Bypass: true" | less

以上是关于sh 卷曲技巧和窍门的主要内容,如果未能解决你的问题,请参考以下文章

Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门

Kubectl 好用的命令行工具:oh-my-zsh 技巧和窍门

WiX 技巧和窍门

text 技巧和窍门

markdown Windows技巧和窍门

PHP深度分析:101个核心技巧窍门和问题解决方法