2.3.4 Hyper Text Transfer Protocol (HTTP)
Hyper Text Transfer Protocol is the underlying protocol used by the World Wide Web. HTTP defines how messages are formatted and transmitted, and what action web server and browsers should take in response to various commands. For example, when the user enters a URL in a browser, the browser actually sends and HTTP command to web server directing it to fetch and transmit the requested web page.
HTTP is based on request / response model. The client connects to the server and sends a request to the server. The request contains the following: request method, URL, Protocol version. The client then sends some header information. The server’s response includes the return of the protocol version, status code, followed by a header that contains server information , and then the requested data. The connection is then closed.
These are the four stages behind HTTP. They are
REQUEST – client send request to server for example you want to access the page named http://tut2learn.com/ is a request for the document named login.html. The browser maps this string into an HTTP request.
Headers – After the requests, the client can include additional information for the server. These headers state some key facts about the clients.
RESPONSE – after the client sends the request, the server processes it and returns a response. The first line of the response is the status line, which states the status of the request. After the status line, the server sends response headers that states facts about the responses.
GET/POST methods – HTTP responses can be one of several types, called methods. The two most important methods are get and post.
The Get method is used for retrieving information from the server; the post method is used for sending information to a server, for example, placing an order for a book at Amazon. When you type an URL into your browser or click a link the GET method is being used. When you submit a complicated form the POST method is typically being used. The difference between GET and POST is that GET requests are intended to be used to send only a relatively small amount of information to a server. POST commands, on the other hand, can be used to send a virtually unlimited amount of data to the server.
HTTP is stateless protocol which means that a different connection between a client and server is established for each request.
Related Posts:
- 4.7. summary of html advanced tags
- 4.5.1. Nested Framesets
- 4.5. Dividing the screen-display using Frames and Frameset Element
- 4.4.1. Form Elements
- 4.4. Getting User Input with HTML forms
- 4.3. Displaying Tables in HTML
- 4.2.4. Definition lists
- 4.2.3. Unordered Lists.
- 4.2.2. The START and TYPE attributes
- 4.2 Incorporating Lists in Web pages
Subscribe Here (or)
Internet Tutorials
- Introduction to Internet
- 1.2 History behind the formation of Internet
- 1.3 Getting connected to Internet
- 1.3.1 Modem
- 1.3.2 Network Interface Card
- 1.4 Internet Services
- 1.4.2 Integrated Services Digital Network (ISDN)
- 1.4.3 Comparison to DSL-ISDN
- 1.4.4 Broadband and Base band Transmission
- 1.4.4 Wi-Fi
- 1.5 Introduction to Internet Summary
- INTERNET PROTOCOLS
- Introduction to Internet Protocol
- 2.3.1 TCP/IP Essentials
- 2.3.2 How TCP/IP works?
- 2.3.3 User Datagram Protocol (UDP)
- 2.3.4 Hyper Text Transfer Protocol (HTTP)
- 2.3.5 File Transfer Protocol (FTP)
- 2.4 Remote Access and Transactions
- 2.5 Electronic Mail
- Mail clients
- 2.6 Search Engines
- Some popular search engine
- 2.7 Internet Protocol Summary
- 3.7.1. Making an image or an icon as a link
- HTML Advanced Display Features and Forms Objective
- 4.1 Introduction to HTML Advanced Tags
- 4.2 Incorporating Lists in Web pages
- 4.2.2. The START and TYPE attributes
- 4.2.3. Unordered Lists.
- 4.2.4. Definition lists
- 4.3. Displaying Tables in HTML
- 4.4. Getting User Input with HTML forms
- 4.4.1. Form Elements
- 4.5. Dividing the screen-display using Frames and Frameset Element
- 4.5.1. Nested Framesets
- 4.7. summary of html advanced tags
Leave a Reply