There are many problems in CGI technology:1.If number of client increased, response time very less.2.For each request, it starts a process. Web server is limited to start process.3.It uses plateform dependent language e.g. C,C++,perl.
HTTP (Hyper Text Transfer Protocol):
Http is the protocol that allows web servers and browsers to exchange data over the web.
It is a stateless TCP/IP based protocol used for Communicating on the World Wide Web. HTTP defines the manner inwhich web clients communicate with web servers. Today, the most common version of this is HTTP/1.0.HTTP alsocalled a connectionless protocol.A protocol is said to be stateless if it has no memory of prior connections and cannot distinguish one client’s requestfrom that of another. The stateless nature of HTTP is both its strength and weakness. The strength is that its statelessnature keeps the protocol simple and straightforward. The disadvantage is in the overhead required to create a newconnection with each request and the inability to track a single user. That is, using HTTP, a client opens a connectionwith the server, and sends requests, receives a response and closes the connection. Each request requires its ownconnection. Now let us take a close look how HTTP helps to communicate between a web server and a web browser.There are generally four stages of a simple web transaction:
1.The client opens a connection to the server:
First, the client opens a TCP/IP connection to the server. By default, the connection on the server is made to port 80, unless or otherwise specified.
2.The client makes a request to the server:
Let us assume that the web browser makes a request to retrieve an HTML file. For this, the user enters theRequired URL into the web browser. This request is broken into three parts: the request method, the source Name and the protocol.
3.The server responds to the request:
The server gets the request from the browser. The server responds with a status code, various header files andIf possible, contents of the request.
4. Connection is closed
Either the server or the client may close the connection. The server generally terminates the connection after The response has been sent. Similarly, a browser often closes the connection once the complete response hasBeen received.
Http Request Methods:
Every request has a header that tells the status of the client. There are many request methods. Get andPost requests are mostly used. The http request methods are: