HTTP headers

HTTP headers are extra information, exchanged between the server and the client, to configure further the network transaction.

They are separated from the content, which usually represents the HTML page, or the binary code of the image, archive.

HTTP headers have a name, and a value. They are made of ASCII text, and separated by a colon :

HTTP headers are the same with HTTPS.

In PHP, they are handled by the functions prefixed by header_ : headers_sent(), headers_list(), header(), header_remove(), header_register_callback().

<?php

function foo($a, $b) {
    return $a - $b;
}

?>

Documentation

See also RFC 4229 : HTTP Header Field Registrations, HTTP headers list

Related : Hyper Text Transfer Protocol (HTTP), HTTPS