![]() |
How HTTP Works?
HTTP is an abbreviated form of Hyper Text Transfer Protocol..As we all know HTTP set the foundations for internet and WWW [world wide web]...I'll not go in much detail of its history, but I'll get straight to the topic of
How HTTP worksHTTP is a request response protocol to communicate asynchrnously between client and server. Mostly in HTTP a browser acts as a client and a web-server like Apache or IIS acts as server. The server which hosts the files (like html , audio , video files etc) responses to the client. Depending on the request a response contains the status of the request. What a Request Message contains? A request can be a line such as :- Code:
GET /index.php HTTP/1.1Headers can be like Code:
Accept-Language: enIn HTTP/1.1 all headers are optional except the Host... Different types of HTTP requestsThere are 9 types of HTTP requests/method. GET This request is Used to get the Response header and the response body!!eg :- Code:
aneesh@aneesh-laptop:~$ telnet www.go4expert.com 80 This request is used to get back The response header only (not the response body as returned by the GET request..)eg :- Code:
aneesh@aneesh-laptop:~$ telnet www.go4expert.com 80 This request is used to submit data (eg : for to be used in HTML forms etc..)...PUT Used for uploading resourcePATCH Is used to modify the resourceDELETE Used for deleting resourceTRACE simply echoes back the request sent by the client... Code:
aneesh@aneesh-laptop:~$ telnet www.go4expert.com 80 Convert the It transparent TCP/IP tunnel , usually to facilitate SSL encrypted Communicated (HTTPS) through an unencrypted HTTP proxy.. This is usually used in the login / signup pages in which the data needs to be encrypted so as to protect it from sniffers etc etc...OPTIONS This request returns back the HTTP options/methods supported by the server... SummaryClient side :- Basically as A http client sends a HTTP request. The client actually establishes a TCP connection to the port no on the host... (Mostly its 80 but can be change according to the setting of the server..) Then the host send back the requested resource with a status code... Like 202 , 404 (refer http://en.wikipedia.org/wiki/List_of_HTTP_status_codes to know more about the status codes) A basic client request :- Code:
GET / HTTP/1.1 A HTTP web server listens for requests on the port no specified (default : 80)...As the Server gets a request it returns back the requested resource with a status code... A basic server output :- I will try to explain each of them with an example using my Own HTTP Server. Code:
aneesh@aneesh-laptop:~$ sudo '~/Programming/C/Ani-srver/web_server' |
Re: How HTTP Works?
I hope you liked it...
Please comment!!!! |
Re: How HTTP Works?
Useful information, It will be great help if you share what http we are using in seo ?
|
Re: How HTTP Works?
Quote:
|
Re: How HTTP Works?
Quote:
Can you please clear it!!! |
Re: How HTTP Works?
above which you are explained for HTML it is validate for XHTML & DHTML ?
|
Re: How HTTP Works?
Quote:
Basically , XHTML is a combination of XML and HTML.. 2. DHTML is Dynamic HTML ... This is because of use of various languages..like PHP , JavaScript..etc...etc... There is not much differenced in these... Basically , Every page on the Web Follows HTTP Rules and HTML Markup!! |
Re: How HTTP Works?
Quote:
|
Re: How HTTP Works?
Quote:
|
Re: How HTTP Works?
Hi Guys,
Hypertext transfer protocol provides a way for clients such as web browsers to communicate with web servers. There's quite a bit on the web that's written on the topic, so for the time being we'll just provide some good links for you. |
| All times are GMT +5.5. The time now is 12:08. |