-
:
1
2
Wireshark
3
TCP
4
Ethereal Lab: IP
5
Ethereal Lab: ICMP
1
(http, pop, smtp) telnet.exe .
. , , .
, . (). , , web- : , , . , Telnet .
, . , . , . , . , . , , , , , . , , , .
, . :
, ;
, ;
, , ;
, , .
, , , . :
|
|
, ;
.
, , . - . , HTTP, 80, , POP 110, , SMTP - 25.
HTTP
HTTP . - , , , - . HTTP , .
web- . HTML, JPEG GIF .., , (URL). , web- HTML- , .
, , URL www.somehost.ru/somename/image1.gif www.somehost.ru, /somename/image1.gif. web.
WEB- , URL.
HTTP , web-, . web-, HTTP- , . , .
, HTTP/0.9, . HTTP/1.0, RFC-1945, , MIME, , /. WWW- , .
, . , : URI (Uniform Resource Identifier), URL URN. , MIME (Multipurpose Internet Mail Extensions).
- :
GET /somedir/page.html HTTP/1.1
Host www.somehost.ru
Connection: close
User-agent: Opera/9.0
Accept-language: ru
5 , ( ), . , 5. , .
:
|
|
,
URL,
HTTP.
, GET, HEAD . GET , , URL-. HEAD GET. HEAD , . RFC 1945 RFC 1945.
. Host , . Connection Close , . The User Agent , , .
-, . : , . ( ) . :
,
,
, .
, , , , , . - :
HTTP/1.1 200 // HTTP/1.1, // //
Connection: close // //
Date: Thu, 11 Nov 2006 02:45:15 GMT
Server: Apache/1.3.0 (Unix)
Last-Modified: Mon, 9 Oct 2006 02:45:15 GMT
Content-length: 6532
Content-type: text/html // . // html.
(SMTP POP)
SMTP, RFC 2821, . , . , SMTP .
, SMTP- TCP- 25 ; , . , . . . TCP, . , , -. .
SMTP- (C) SMTP- (S). my.ru, gukit.edu. (, , ASCII, ; , .)
, - :
220 gukit.edu
LO gukit.edu
250 Hello my.ru, pleased to meet you
MAIL FROM: <[email protected]>
250 [email protected]... Sender ok
RCPT TO: <[email protected]>
250 [email protected]. Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Hochesh' sosisku?
Prihodi v gosti!
.
250 Message accepted for delivery
QUITS: 221 gukit.edu closing connection
gukit.edu Hochesh' sosisku? Prihodi v gosti! my.ru. : HELO, MAIL FROM, RCPT TO, DATA QUIT. . , , . . () . SMTP : , TCP-. MAIL FROM: my.ru, . , QUIT.
|
|