HTTP Pocket Reference

( 1 )


The HyperText Transfer Protocol, or HTTP, is the backbone of the World Wide Web. HTTP is the language that each web browser (or other web client) uses to communicate with servers around the world. All web programmers, administrators, and application developers need to be familiar with HTTP in order to work effectively.

The HTTP Pocket Reference not only provides a solid conceptual foundation of HTTP, it also serves as a quick reference to each of the headers and status codes ...

See more details below
Other sellers (Paperback)
  • All (20) from $1.99   
  • New (10) from $5.33   
  • Used (10) from $1.99   
HTTP Pocket Reference: Hypertext Transfer Protocol

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$6.99 price
(Save 12%)$7.99 List Price


The HyperText Transfer Protocol, or HTTP, is the backbone of the World Wide Web. HTTP is the language that each web browser (or other web client) uses to communicate with servers around the world. All web programmers, administrators, and application developers need to be familiar with HTTP in order to work effectively.

The HTTP Pocket Reference not only provides a solid conceptual foundation of HTTP, it also serves as a quick reference to each of the headers and status codes that comprise an HTTP transaction. The book starts with a tutorial of HTTP, but then explains the client request and server responses in more detail, and gives a thorough technical explanation of more advanced features of HTTP (such as persistent connections and caching).

Most people use the Web every day without knowing anything about HTTP, but for those who need to get "beyond the browser," this book is the place to start.

This book provides a solid conceptual foundation of HTTP so Web programmers, administrators, and application developers can concentrate on working effectively. The book serves as a handy, quick reference to each of the headers and status codes used to compose an HTTP transaction.

Read More Show Less

Product Details

  • ISBN-13: 9781565928626
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 6/28/2000
  • Series: Pocket Reference (O'Reilly) Series
  • Edition number: 1
  • Pages: 82
  • Product dimensions: 4.26 (w) x 6.93 (h) x 0.27 (d)

Meet the Author

Clinton Wong authored Web Client Programming, published by O'Reilly & Associates in 1997. Clinton works on network and security related projects in the Silicon Valley bay area.

Read More Show Less

Read an Excerpt

HTTP Pocket Reference

This book describes HTTP, the Hypertext Transfer Protocol. It provides a high level description of how the protocol works, along with reference information on client requests and server responses. Included are dumps of HTTP transactions, as well as tabular data that summarizes most of the standardized parameters used in HTTP.

The HTTP Pocket Reference is intended for system administrators, web site developers, and software engineers. With an understanding of HTTP, system administrators will have a better understanding of web site configuration and debugging. Web site designers can implement services that make better use of the protocol and streamline web client and server interaction. Software engineers who need to implement HTTP will find this book useful for its short, concise description of the protocol.

What Is HTTP?

HTTP is the protocol behind the World Wide Web. With every web transaction, HTTP is invoked. HTTP is behind every request for a web document or graphic, every click of a hypertext link, and every submission of a form. The Web is about distributing information over the Internet, and HTTP is the protocol used to do so.

HTTP is useful because it provides a standardized way for computers to communicate with each other. HTTP specifies how clients request data, and how servers respond to these requests. By understanding how HM works, you'll be able to:

  • Manually query web servers and receive low-level information that typical web browsers hide from the user. With this information, you can better understand the configuration and capabilities of a particular server, and debug configuration errors with the server or programming errors in programs invoked by the web server.
  • Understand the interaction between web clients (browsers, robots, search engines, etc.) and web servers.
  • Streamline web services to make better use of the protocol.

HTTP Transactions

This section presents an example of a common web transaction, showing the HTTP exchanged between the client and server program.


Given the following URL:

The browser interprets the URL as follows:


Use HTTP, the Hypertext Transfer Protocol.
Contact a computer over the network with the hostname of
Connect to the computer at port 80. The port number can be any legitimate IP port number: 1 through 65535, inclusively.* If the colon and port number are omitted, the port number is assumed to be HTTP's default port number, which is 80.
Anything after the hostname is regarded as a document path. In this example, the document path is /.

* Assuming IP version 4 addressing, which is the most common version of IP currently in use.
So the browser connects to on port 80 using the HTTP protocol. The message that the browser sends to the server is:
 GET             / HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/ Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE Host: Connection: Keep-Alive

Let's look at what these lines are saying:

1. The first line of this request (GET / HTTP/1.1) requests a document at / from the server. HTTP/1.1 is given as the version of the HTTP protocol that the browser uses.

2. The second line tells the server what kind of documents are accepted by the browser.

3. The third line indicates that the preferred language is English. This header allows the client to specify a preference for one or more languages, in the event that a server has the same document in multiple languages.

4. The fourth line indicates that the client understands how to interpret a server response that is compressed with the gzip or deflate algorithm.

5. In the fifth line, beginning with the string User-Agent, the client identifies itself as Mozilla version 4.0, running on Windows NT. In parenthesis it mentions that it is really Microsoft Internet Explorer version 5.01.

6. The sixth line tells the server what the client thinks the server's hostname is. This header is mandatory in HTTP 1.1, but optional in HTTP 1.0. Since the server may have multiple hostnames, the client indicates which hostname is being requested. In this environment, a web server can have a different document tree for each hostname assigned to it. If the client hasn't specified the server's hostname, the server may be unable to determine which document tree to use.

7. The seventh line (Connection:) tells the server to keep the TCP connection open until explicitly told to disconnect. Under HTTP 1.1, the default server behavior is to keep the connection open until the client specifies that the connection should be closed. The standard behavior in HTTP 1.0 is to close the connection after the client's request. See the discussion under "Persistent Connections" later in this book for details.

Together, these seven lines constitute a request. Lines two through seven are request headers. The section "Headers" discusses each header in more detail...

Read More Show Less

Table of Contents

Chapter 1: HTTP Pocket Reference;
1.1 What Is HTTP?;
1.2 HTTP Transactions;
1.3 Client Methods;
1.4 Server Response Codes;
1.5 Headers;
1.6 URL Encoding;
1.7 Client and Server Identification;
1.8 Referring Documents;
1.9 Retrieving Content;
1.10 Media Types;
1.11 Cookies;
1.12 Authorization;
1.13 Persistent Connections;
1.14 Client Caching;

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted May 8, 2012

    No text was provided for this review.

Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)