The method getAllResponseHeaders() (see preceding code) returns all HTTP headers in the HTTP response, whereas the geTResponseHeader() method returns just one specific header. The following code shows how to get information about the type of web server used: Retrieving an HTTP Response Header (responseheader.html)
Note that not all servers send this header; some also put fake data in it to make server profiling harder. |