O'Reilly logo

HTTP Developer’s Handbook by Chris Shiflett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Request Headers

Associated with each HTTP request is a collection of HTTP headers. These headers provide supporting information that helps the Web server fulfill the request appropriately. These headers vary widely in purpose, although they belong to one of three groups: request headers, general headers, and entity headers.

Request headers pertain specifically to the request itself. Thus, these headers cannot be used in a response and do not pertain to the content being sent. HTTP/1.1 defines 19 request headers. I will explain each of these as well as an additional request header, Cookie, that has become commonly supported and is defined separately in RFC 2109, “HTTP State Management Mechanism.”

The Accept Header

The basic purpose of the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required