Hypertext Transfer Protocol (HTTP, ) - , World Wide Web . , , Web. HTTP , CGI-. , HTTP - , , .
HTTP- . : (), . :
1. ( - 80). , HTTP-, , HTTP. ,
GET /index.html HTTP/1.0
GET, 1.0 HTTP index.html. HTTP .
2. (), , . , . , , , , :
User-Agent: Mozilla/4.05 (WinNT; 1)
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
.
3. , . CGI-, POST. Web-.
:
1. - , : HTTP, . HTTP, .
- , . , , , . ,
/1.0 200 OK
, HTTP 1.0. 200 , .
2. , . :
Date: Fri, 10 Jan 2004 07:34:28 GMT
Server: Apache/2.2.6
Last-modified: Mon, 12 Jun 2003 22:54:48 GMT
Content-type: text/html
Content-length: 2482
|
|
.
3. , . CGI-. , , .
HTTP 1.0 , , Connection: Keep Alive.
. HTTP-, , URI, , HTTP. . , . - , .
- HTTP-, . . HTTP : GET, HEAD POST. , , . , GET get .
GET
GET - , URL. GET - . GET , , , , CGI-, ..
GET, , . , , , .
GET . GET : " ". .
GET . :
GET /index.html HTTP/1.
Connection: Keep-Alive
User-Agent: Mozilla/4.05 (WinNT; 1)
Host: www.ora.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
:
HTTP/1.0 200 Document follows
Date: Fri, 20 Jan 2004 08:17:58 GMT
Server: Apache/1.2.6
Last-modified: Mon, 20 Jun 2003 21:53:08 GMT
Content-type: text/html
Content-length: 2482
( )