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 following functions : 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 and PHP - simple way to send HTTP headers before a script ends.

Related : Hyper Text Transfer Protocol (HTTP), Hyper Text Transfer Protocol Secure (HTTPS), PHP Handlers, Headers, HTTP Request Headers