In the http protocol, I saw sometimes we have a HOST header, like
Host: www.google.com:3333
what’s the usage for this header? Why do we need this header?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When an http request hits a server, it only hits an IP/Port combination. This header shows which host was actually requested.
Many machines serve multiple hosts from the same IP. Without this header, they wouldn’t know which host was requested.