HTTP headers | Content-Location Last Updated : 07 Nov, 2019 Comments Improve Suggest changes Like Article Like Report The HTTP Content-Location header is an entity-header that gives another location for the data that is returned and also tells how to access the resource by indicating the direct URL. Its usage is often confused with another HTTP Header which is Location. The main difference between them is that Location gives the URL of the resource where the redirection of the page happens while HTTP Content-Location is used to indicate the URL of a transmitted resource. Syntax: Content-Location: <url> Directives: This header accepts a single directive mentioned above and described below: <url>:This directive holds the relative or absolute URL that gives access to a resource. Examples: In this example, index.html is the URL which indicated the location of the content. Content-Location: /index.html In this example, teddy.xml is the URL which indicates the location of the content. Content-Location: /teddy.xml To check this Content-Location in action go to Inspect Element -> Network check the response header for Content-Location like below. Supported Browsers: The browsers are compatible with the HTTP Content-Location header are listed below: Google Chrome Internet Explorer Opera Firefox Safari Comment More infoAdvertise with us Next Article HTTP headers | Content-Location H harshcooldude700 Follow Improve Article Tags : Computer Networks HTTP-headers Similar Reads HTTP headers | Location The HTTP Location header is a response header that is used under 2 circumstances to ask a browser to redirect a URL (status code 3xx) or provide information about the location of a newly created resource (status code of 201). Its usage is often confused with another HTTP Header which is HTTP Content 2 min read HTTP headers | Content-Range The Content-Range HTTP header is a response header that indicates where a partial message belongs in a full body massage. This header is sent with a partial entity-body to specify where in the full entity-body the partial body should be applied. Syntax: Content-Range: <unit> <range-start 1 min read HTTP headers | Content-Language HTTP headers are used to provide additional information in HTTP request and HTTP response. HTTP headers Content-Language is used to define, which language speaker document is intended to. It doesn't define the language of the document. In case this header is not specified, it is assumed that the doc 1 min read Content-Length - HTTP headers HTTP headers are used to transmit additional information in an HTTP request or response. One such important header is the Content-Length header, which is responsible for indicating the size of the entity-body, measured in bytes (octets). This information is used by the recipient to know the exact le 2 min read HTTP headers | X-Content-Type-Options The HTTP headers X-Content-Type-Options acts as a marker that indicates the MIME-types headers in the content types headers should not be changed to the server. This header was introduced in the Internet Explorer 8 of Microsoft. This header block the content sniffing (non-executable MIME type into e 1 min read HTTP headers | Content-Type The Content-Type header is used to indicate the media type of the resource. The media type is a string sent along with the file indicating the format of the file. For example, for image file its media type will be like image/png or image/jpg, etc. In response, it tells about the type of returned con 3 min read HTTP headers | Content-Security-Policy The Content Security Policy response header field is a tool to implement defense in depth mechanism for protection of data from content injection vulnerabilities such as cross-scripting attacks. It provides a policy mechanism that allows developers to detect the flaws present in their application an 3 min read HTTP headers | X-Frame-Options HTTP headers are used to pass additional information with HTTP responses or HTTP requests. The X-Frame-Options is used to prevent the site from clickjacking attacks. It defines whether or not a browser should be allowed to render a page in a <frame>, <iframe>, <embed>, or <objec 2 min read HTTP headers | Accept-Language This HTTP Accept-Language header tells the server about all the languages that the client can understand. With the help of content negotiation, there will be a set of supported languages in the HTTP Accept-Language proposal then the server selects one of the proposals of those languages and place th 2 min read HTTP headers | Accept-Patch The Patch is used for making partial changes to an existing resource. The Accept-Patch HTTP header is a response HTTP header that specifies the patch document is supported or not and also the media type that the server is able to understand. The presence of a specific patch document format in this h 1 min read Like