What is the Server HTTP response header useful for? I have yet to actually see a use for it. Why would someone that's requesting a webpage need to know what server a webpage is hosted on?
The Server header describes the software used by the origin server that handled the request — that is, the server that generated the response. Warning: Avoid overly-detailed Server values, as they can reveal information that may make it (slightly) easier for attackers to exploit known security holes.
HTTP headers re used to convey additional information between the client and the server. Although they are optional they make up the most of the http request and are almost always present.
If your question is "why specify the host in a Host header as opposed to on the Request-Line", the answer is the need for interopability between HTTP/1.0 and 1.1. If the question is "why is the Host header mandatory", this has to do with the desire to speed up the transition away from assigned IP addresses.
This has reminded me of the first HTTP server I wrote, which (obviously) returned the server header: Why do you want to know?
One possible answer to this question is "Because I'm doing a survey." For example, this would be impossible without the Server header.
Server doesn't mean the server that the resource is served from. It's for advertising the implementation. As to its utility, that's a good question. Apache httpd can be configured not to include that header, since it can be considered a security issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With