POST . , (, CGI-). POST . , : ( ); ; ; .
, , . POST , URL. POST URL-, CGI-.
POST. , :
POST /cgi-bin/birthday.pl HTTP/1.0
User-Agent; Mozilla/4.05 (WinNT; 1)
Accept: image/gif, iinage/x-xbj.tmap, image/jpeg, J.mage/pjpeg, */*
Host: www.ora.com
Content-type: application/x-www-form-ur.lencoded
Content-Length: 20
nionth=august&date=24
. - , HTTP, , , . , .
SMTP
SMTP (Simple Mail Transfer Protocol) , (). SMTP TCP 25. SMTP . SMTP (Mail Procedure). (Mail Forwarding), . , - .
, - . , - . .
SMTP , . , . 4- . (CRLF). SMTP (SP - ):
HELO <SP> <domain> <CRLF>
MAIL <SP> FROM:<reverse-path> <CRLF>
|
|
RCPT <SP> TO:<forward-path> <CRLF>
DATA <CRLF>
RSET <CRLF>
SEND <SP> FROM:<reverse-path> <CRLF>
SOML <SP> FROM:<reverse-path> <CRLF>
SAML <SP> FROM:<reverse-path> <CRLF>
VRFY <SP> <string> <CRLF>
EXPN <SP> <string> <CRLF>
HELP <SP> <string> <CRLF>
NOOP <CRLF>
QUIT <CRLF>
SMTP , . .
SMTP 25. HELLO IP ( : C: - , S: - ):
C: HELLO 195.161.101.33
S: 250 smtp.mail.ru is ready
(, ):
C: MAIL FROM: <>
S: 250 OK
C: RCPT TO: <>
S: 250 OK
, ( )
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
< >
CRLF.CRLF
S: 250 OK
, QUIT:
S: QUIT
C: 221 smtp.mail.ru is closing transmission channel
:
C: From: Drozd <[email protected]>
C: To: Drol <[email protected] >
C: Subject: Hello
C: Hello vasya!
C: How are you?
<CRLF.CRLF>
S: 250 OK
S: QUIT
C: 221 smtp.mail.ru is closing transmission channel