How browsers talk to servers
This is more of an outline than a tutorial. I wanted to give our web team a quick overview of what headers are and what they mean for client-server communication. Mainly, what HTTP headers mean for cookies and for other information that they see when they’re programming on web pages.
It’s unlikely I’ll ever do this tutorial again, so this document is probably more useful as a starting point for giving a tutorial, rather than as a standalone tutorial.
- What does this do?
- <? setcookie('greeting', 'yes');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- Examining headers
- On-line text for Examining headers in HTTP headers
- Common headers
- Headers always look like “Some-Name: some value”.
- Manipulating headers
- The “header()” function in PHP lets you manipulate headers, and this is most commonly how we do it when we need to set headers inside of a PHP script. Browsers give us a way of manipulating the headers they’re storing for the page, in the HEAD of a web document. We use it to set the character set of our newer web pages:
- Common PHP Header Functions
- On-line text for Common PHP Header Functions in HTTP headers
- Necessary tutorial files
- • HTTP Client
- Monolithic HTML version
- HTML version of HTTP headers
- Monolithic PDF version
- PDF version of HTTP headers
- Monolithic RTF version
- RTF version of HTTP headers