HTTP Request having 4 general form that was HTTP method Domain part of the URL HTTP ver. , Header fields, blank line, Message body. The common methods is shown below:
GET
|
Fetch a document
|
POST
|
Execute the document using the data in the body
|
HEAD
|
Fetch just the header of the document
|
PUT
|
Store a new document on the server
|
DELETE
|
Remove a document from the server
|
The client using any type of browser and type in any website of domain name and the HTTP Request will summit the data to the ISP or Name Server and translate the domain name to IP address and the HTTP Request will send again to the web server like Apache, IIS, Unix, Linux and NT. After responded from the web server, the web server will send the HTML document along with the HTTP Respond to the ISP or Name Server. after the TSP or Name Server get the HTTP Respond and HTML document, ISP or the Name Server will sent the Respond along with the document to the browser which the client asked.
HTTP Response Phase
Server Response is in the form of status line like (HTTP /1.1 200 OK). The status contain response header fields, Blank line and the Response body. The status code contain of 3 digit of number and the first digit specifies the general status. There are 5 Sever Response as shown below:
First Digit
|
Category
|
1
|
Informational
|
2
|
Success
|
3
|
Redirection
|
4
|
Client Error
|
5
|
Server Error
|
The client request with any type of browser will send to the ISP or Name Server with translating the Domain Name to the IP address. The ISP or Name Server will send the IP address that they change to the Web Server and Get the HTML document from the Web Server. After the Web Server get the HTML document, they will sent the document along with the HTTP Respond back to the ISP or Name Server and the ISP or Name Server send the document that the client request to their browser. The client will normally get the Response of 200 means that they get their HTML document as they requested. If the browser show 300 means that further action need to be taken to complete the request. If the client does not get the document as they want, the browser that the client use will show with 400 (Client Error) or 500 (Server Error). the Response of 400 means the client type a wrong domain name. If the browser show the Response of 500 means the server cant complete the task and it may be cause by the server is temporarily down.
No comments:
Post a Comment