Professional Documents
Culture Documents
Computers on the World Wide Web use the HyperText Transfer Protocol to talk with each other. The HTTP provides a set of
instructions for accurate information exchange. The communication between the client (your browser) and the server (a software
located on a remote computer) involves requests sent by the client and responses from the server.
Each client-server transaction, whether a request or a response, consists of three main parts
2. Header information
3. The body
A client connects to the server at port 80 (unless it has been changed by the system administrator) and sends a request. The
request line from the client consists of a request method, the address of the file requested and the HTTP version number.
GET /mypage.html HTTP/1.1
The above request calls for mypage.html file using the GET HTTP method; the version of HTTP used is 1.1.
After the request line comes the header data that consists of configuration information about the client and its document viewing
preferences. The header is a series of lines, each of which contains a specific detail about the client and ends with a blank line. A
header may look like this:
ACCEPT: */*
ACCEPT_LANGUAGE:en-us
REFERER:http://www.simplygraphix.com/wedes.html
...
Most of the lines in the header are self-explanatory. The ACCEPT identifies the various kinds of files which the client can display.
The REFERER lines contains the document from which the request was generated. In the case above, it
is webdes.html document fromhttp://www.simplygraphix.com web site that has sent the request. the The USER_AGENT
specifies the browser and gives details on its version number.
The body of the request will contain data sent by the client via POST method.
The server now responds. Again, the response consists of three parts.
The response line contains information on the HTTP version number, a status code that indicates the result of the request from the
client and a description of the status code in 'English'.
HTTP/1.1 200 OK
The HTTP version used is 1.1 and the status code 200 and 'OK' explain the result of the client's request. There are many HTTP
server status codes and you can know more about them through the links given at the end of this page.
The header from the server contains information about the server software and the document sent to the client.
Date: Wed, 16 Aug 2000, 13:25:54 GMT
Server: NCSA/1.5.2
Content-type: text/html
Content-length: 12443
The header is followed by a blank line that indicates the end of the header information. From the example above, the server sends
an html document of size 12443 bytes as shown by the Content-type and Content-length lines. The server line gives details about
the server software. The rest is quite evident.
One last point on the HTTP protocol- HTTP is a stateless protocol, which means that the connection between the browser and the
server is lost once the transaction ends.
FTP clients
If you plan to FTP on a regular basis, I suggest you use an FTP Client - a dedicated program for FTP. There are many FTP clients
available (and some of them are freeware). The interface of each program varies, but the information required is almost the same.
You should know your username and password of the site (if it is not anonymous FTP) and the server address.
Here is a list of some FTP clients that I have used - FTP clients or FTP programs. I have also put a thorough tutorial on using FTP
with a popular and free FTP client - Using FTP with FTP Explorer.
FYI, the Post Office Protocol is employed only for downloading emails and goes hand in hand with SMTP or the Simple Mail
Transfer Protocol which is used for sending emails.
POP enabled email account can also be accessed via a web browser as long as the service provider has put up an interface (a
graphical user interface, usually) through which the account can be managed.