March 2003
Intermediate to advanced
312 pages
7h 12m
English
The Content-Location header is used in cases in which the URL of the resource being returned differs from the URL being requested for some reason. This situation may occur when the preferences of the Web client being communicated via the HTTP headers indicates a preference for a different resource than the specific one being requested. Because some resources are maintained in various languages, an Accept-Language request header could prompt the Web server to return an alternative resource in the requested language. Consider the following HTTP request made to httpd.apache.org:
HEAD /docs/index.html HTTP/1.1 Host: httpd.apache.org Accept-Language: fr
Because the HTTP request indicates a language preference of fr, the Web server ...
Read now
Unlock full access