Publishers of technology books, eBooks, and videos for creative people

Home > Reference Guides > Web Design & Development

HTTP

Last updated Mar 1, 2004.

Whenever we go someplace on the Web, we use HTTP as part of the URL address. It does much more than whisk us to our destination sites as explained in the previous sections. HTTP (Hypertext Transfer Protocol) is the language of clients and servers. They speak HTTP to each other.

Client Request

HTTP transactions consist of a client request followed by a server response and the request has three parts:

  • Request or response line

  • Header section

  • Entity body

Request or Response Line

When you click a link on this page, the client contacts the server at a designated port number, often the default of 80. During this communication, it is requesting a document through an HTTP command called a method followed by a document address, and then the HTTP version number: GET /index.html HTTP/1.1

GET is the method meaning to retrieve the document index.html using version HTTP 1.1. Other methods are POST, PUT, TRACE, and LINK.

Header Section and Entity Body

The next thing the client sends is an optional header to tell the server of its configuration and the document formats it accepts. Headers are sent line by line with each line containing a header name and value in Header-Name: Value format. For example:

    User-Agent: Mozilla/4.04
    Accept: text/html; */*
    Cookie: name = value
    Referer: http://www.meryl.net/

User-Agent indicates the browser the client is using. Accept tells the server what files the client can accept. */* indicates that documents of all types are accepted. Cookie would typically have a name and value in its place. This is how the server remembers who you are and serves personalized pages. Referer (yes, it's misspelled) is the last Web page you visited prior to landing to the current Web page.

Related Resources

Keely HildUser Group Q&A: Austin Adobe User Group
By Keely HildSeptember 19, 2012Comments

We've recently revamped our User Group newsletter to a more streamlined format!  One of the new features of our newsletter is our User Group Q&A.  Each month we will select one User Group that has been exceptional in their communication with meeting updates, giveaway requests and book reviews and ask them to share some insights and tips with us.  This week, we turn the spotlight on the Austin Adobe User Group!

Keely HildPeachpit's Sweet CS6 Sweepstakes!
By Keely HildSeptember 13, 2012Comments
Do you "like" our eBook Deals of the Week, our helpful articles and chapter excerpts, our podcasts and newsletters?  Most importantly, do you "like" our books, eBooks, videos, and authors?!  Enter our Facebook Sweet CS6 Sweepstakes today!
Laura RossLive Twitterview with Nancy Lyons and Meghan Wilker
By Laura RossMay 3, 2012Comments

Join authors Nancy Lyons and Meghan Wilker for a lively Twitterview about interactive project management on May 10.

See More Blogs