HTTP - Header (Fields)

1 - About

Headers are properties (name-value pairs), where both name and value are text that are:

The HTTP headers are equivalent to fields in other protocols that have the same basic meaning. For example, the HTTP authentication headers are equivalent to the authentication aspects of the FTP protocol.

The name of a header field is not case sensitive. Multiple values can be assigned to the same name.

RFC 2616 defines a wide range of header fields for handling various aspects of the HTTP protocol.

Other specifications, like RFC 2617 and RFC 2965, define additional headers. Some of the defined headers are for general use, others are meant for exclusive use with either requests or responses, still others are meant for use only with an entity.

3 - Type

3.1 - X header

Any headers beginning with X- are custom headers, and are not included in the HTTP spec.

4 - Management

4.1 - Tool

4.2 - List

4.3 - Set

Setting an header is heavily dependent of the technology used. You can set it:

4.3.1 - Web Server

You can set header of request via the web server (http server).

Example with apache: Apache - HTTP Header (mod_header module)

4.3.2 - HTML

The html meta http-equiv can be used to set the header of HTML document retrieved with HTTP.


<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" />

<META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT">

See Reference

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap