HTTP protocol- What is HTTP?

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 1. 2. 3. A response or request line Header information 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 USER_AGENT:Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) ...

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 Last-modified: Sat, 22 Jan 2000, 05:15:43 Content-type: text/html Content-length: 12443

if you buy a web hosting package. it is not a good choice especially when the file size is large or when you need to transfer several files. video etc. which means that the connection between the browser and the server is lost once the transaction ends. This will list the commands available on your system . video etc. On Anonymous FTP servers you can log in with 'anonymous' as username and your email as password. The binary mode is used for binary files like executable programs. vi etc.the FTP username and FTP password. The prompt will change to an FTP prompt. The rest is quite evident. data. you need to know the login details .check the image below. To get help.a username and password.The header is followed by a blank line that indicates the end of the header information. You can open an FTP site with the 'open' command. In order to upload or download a file from an FTP site. type 'help' or '?' at the FTP prompt. The objectives of FTP are to: • • • • promote file (programs or data) sharing efficiently transfer data from one computer to another encourage indirect or implicit use of remote computers provide a common platform for file storages among different hosts FTP sites FTP sites are storehouses of hundreds to thousands of files . music. the company would provide you with a username and password with which you'll connect to the FTP server to transfer your files.programs. you would typically be asked the login details . some severs enable what has come to be known asanonymous FTP.HTTP is a stateless protocol. the server sends an html document of size 12443 bytes as shown by the Content-type and Content-length lines. FTP is also available in Windows. you can transfer files using thebinary or ASCII mode. What is anonymous FTP? On connection to an FTP site or FTP server. Once connected. FTP and web sites The File Transfer Protocol is generally used by web developers to upload web sites to the host . The server line gives details about the server software. One last point on the HTTP protocol.FTP The File Transfer Protocol is an excellent method to transfer (download and send) files from one computer to the other over the Internet. File Transfer Protocol . while the ASCII mode is employed for plain text files such as those created in Notepad.the computer that stores the web site. images. music. You would then have access to all the data which has been placed in the anonymous FTP section. You need to open an MS-DOS window and type ftp at the Dos prompt. . FTP on your desktop FTP is built into the Unix system and can be accessed by typing ftp at the Unix prompt. From the example above. Type 'quit' to come back to the Dos prompt. Though you can transfer files using email. However. For example.

employed for receiving emails from a web server to an email program or an email client. it's transferred over the internet from one server to another using SMTP. but the information required is almost the same. The "outgoing" mail server protocol helps servers communicate with each other and facilitate the delivery of the email message. A login window then pops up (see below). I can then transfer files using the familiar drag-drop method. you can download it to your computer using an email client employing the Post Office Protocol.it cannot "pull" them from servers which is why you also need POP. So one can actually work in the user-friendly environment of the operating system without knowing all the arcane FTP commands! Now isn't that cool? FTP clients If you plan to FTP on a regular basis. You should know your username and password of the site (if it is not anonymous FTP) and the server address. if I need to connect to this web site from Internet Explorer (version 6) on the Windows XP system. When the message finally arrives at your email server. in which I need to type in the username and password to connect to the host. File Transfer Protocol and the browser Modern browsers allow you to access sites using FTP. I can simply type in ftp://www. So if you need help with the verbose command.Using FTP with FTP Explorer. For example.To get help on a specific command. What is SMTP? The Simple Mail Transfer Protocol for sending emails SMTP.a dedicated program for FTP. When someone sends you an email. Here is a list of some FTP clients that I have used . I have also put a thorough tutorial on using FTP with a popular and free FTP client . type help verbose or ? verbose. typically.FTP clients or FTP programs. is the technology used to send outemail messages.com in the address bar. . type help [Command name] or ? [Command name]. It goes hand in hand with POP (Post Office Protocol) that is. I suggest you use an FTP Client .webdevelopersnotes. The interface of each program varies. There are many FTP clients available (and some of them are freeware). SMTP function and importance The main function of text based SMTP protocol is to "push" emails . which stands for Simple Mail Transfer Protocol.

Windows Live Mail and Thunderbird. it doesn't arrive directly at your computer? The message first comes to a computer that's connected to the internet 24/7 and is stored there.its use. Agreed you'll still not be able to check for new messages but you at least have access to old ones. It sets rules for downloading email messages that are stored on an online hard disk to your local computer hard disk.Outlook Express on Windows XP and Windows Mailon Vista. it verifies the configuration of the computer from where the email is being sent and grants permission for the process. Just like most other things on the internet. it's returned-to-sender or bounces back. Secondly.. There are several popular free email clients like Outlook Express. The problem can usually be ironed out by contacting the ISP and asking for their SMPT outgoing server address. You'll appreciate the importance of POP if you have ever faced a problem in accessing email messages (even the old ones) from an online account such as Hotmail. If the email cannot be delivered. it has been exploited for sending spam. Yes. Now imagine the brighter scenario of keeping a copy of all your emails on your computer using a using POP enabled email program. most ISPs keep a close check on the number of outgoing email messages from each account. port number and authentication information. view them anywhere you want . If you use Windows. Yahoo! Mail or Gmail. Get step by step instructions on how to download Windows Live Mail and install it on your computer.SMTP functions in two ways. maybe you were at a location where internet wasn't available or maybe the email service was down. it sends out the message and follows the successful delivery of the email. Did you know that when someone sends you an email. In fact. you can check your emails using a web browser or employ a dedicated email program (also known as an email client). Maybe the net connection wasn't working properly. ISP generally do not allow account holders to send email from other SMTP address but their own and they do this by quickly blocking ports 25 (and/or 26). Firstly. Some time back Microsoft released a new email client which they call Windows Live Mail meant to "replace" Outlook Express and Windows Mail Vista. Email clients are programs that let you send and receive email messages from your computer. SMTP and spamming Since SMTP does not authenticate the sender. in a email client. importance and function POP or Post Office Protocol is a technology used for downloading messages from an email server to your computer. Are POP and POP3 the same thing? Yes! POP3 is actually version #3 of the Post Office Protocol and this means the technology has gone through a couple of iterations before finally arriving in its present form.cannot send emails . thus. an active internet line is required to download messages from the server but once they come to your computer. Depending on the kind of access allowed.even without an internet connection. whatever. What is POP . This leads to the most common complain . you already have an email program pre-installed on your system . Such a computer is known as a web server and to receive email messages it runs a special program called the email server. Importance and usage of POP The POP technology is used to build a communication channel between an email client and a server. email too is based on the client-server model and POP is the language used in the communication between an email clients and a server. you can sever the connection. The enhanced version of SMTP called Extended SMPT or (ESMTP) is employed for sending images and other file attachments along with emails. And frustration is what follows.from subscribers who configure a non ISP email account. .. Using POP you can download all emails to your computer and. And because of this. Windows Mail Vista. such as those from their web sites or web based email providers.

Once you get a POP enabled email account. you can enable POP on Gmail accounts for free . password and the email server address. typically. pop. you'll have no need to checking your messages on the web based service. Windows users are lucky because a free email client is available on all versions. since the protocol lets you to download messages to your computer via an email client.com or simply THE-DOMAIN-NAME. This means you would hardly ever log in to your online account and. Yahoo! Mail charges you about $20 per year access your account through POP. clicking on them! All free web based email accounts. usually) through which the account can be managed. Accessing emails through POP is a simple affair. are supported by the advertising. there is some good news finally. For Windows Live Hotmail users. The companies show these ads expecting subscribers to compensate the privilege of free access by checking out the sponsored products or services. You only need the username. your email service should provide you with a POP access.it depends on the service provider and the web server configuration.you can do this yourself. Typically. 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. Microsoft has released the new Windows Live Mail email client which can be downloaded for free from their web site. The incoming email server address is. For step by step instructions on using POP with Windows based email clients please refer the list below: • • • • • • Setup new email account in Outlook Express Configure Gmail on Outlook Express Configure email account on Windows Mail Vista Add Gmail on Windows Mail Vista Setup Windows Live Mail email client Setup and configure Gmail on Windows Live Mail FYI.THE-DOMAIN-NAME. How do you access email through POP . even Gmail. Why don't all email services allow POP access? Well. would not "pay" for your free access by either looking at the advertisements or.Post Office Protocol? As mentioned above. 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.com. all you need is an email client that can use the Post Office Protocol. email accounts from ISPs (Internet Service Providers) and those you create on your web site come with POP access. .it's available only to subscribers in some countries at the time of writing and I hope it will soon be included on all accounts. In fact.Do all email servers use POP? No . POP on Hotmail is gradually being rolled out . Online email service providers like Yahoo! Mail. Please check with them. For instance. thus. Hotmail. AOL and Gmail have different policies when it comes to POP access. less so.

Sign up to vote on this title
UsefulNot useful