next up previous contents
Next: Universal Resource Up: Standards Previous: TCP/IP [,]   Contents

HTTP [8,9]

So now we can send and receive packets reliably. There are many kinds of transfers we can set up once we have such a facility. We could build a message mechanism such as Instant Messaging (ICQ) [17,18]. We could build a mail mechanism such as POP [15,16]. We could build a file transfer mechanism such as FTP [10,11,12,13,14].

Each of these transfer mechanisms is a ``protocol'' built on top of TCP/IP. A protocol is just an agreement about what the sender and the receiver expect.

In this case we are building a protocol to transfer ``pages''. A page is really nothing more than a file. Some files conform to a particular format called HTML [22,23,24,25,26,27].

The HTTP standard says that an HTTP server should be prepared to handle the following messages:

OPTIONS

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.

This is a very small list and one we could easily implement. The fundamental command is the GET command. The standard says:

... The methods GET and HEAD MUST be supported by all general-purpose servers. All other methods are OPTIONAL; however, if the above methods are implemented, they MUST be implemented with the same semantics as those specified in section 9.

The GET and HEAD commands take 2 arguments, the page to fetch and the name of the HTTP version to which the request conforms. Since HTTP is a very old protocol the original versions would accept 1 argument; the page to fetch. So servers will respond to single argument requests.


Subsections
next up previous contents
Next: Universal Resource Up: Standards Previous: TCP/IP [,]   Contents
root 2004-02-18