2009-Mar-7 - Mail / FTP / HTTP protocols basis
SMTP:
Commands:
one session:
HELO
MAIL FROM: <...>
RCPT TO: <...>
(RCPT TO: <...>)
DATA
...
.
QUIT
Other commands: RSET, NOOP
Response: 1xx, 2xx, 3xx, 4xx, 5xx
POP3:
Commands: USER, PASS, STAT, LIST, RETR, DELE, NOOP, RSET, QUIT, TOP msg n
Response: +OK, -ERR
IMAP vs. POP3:
IMAP:
-
Client does not download the whole mail, only downloads the mail header.
-
Client can directly manipulate the mails on server.
-
User can maintain the mail directory on server.
-
User can retrieve specific part of a mail, eg. text.
FTP:
Commands: USER, PASS, RETR, TYPE (A/E/I/L), PASV, STOR, DELE, LIST, PWD, NOOP, QUIT, CWD
Response: 1xx, 2xx, 3xx, 4xx, 5xx
HTTP:
Simple: GET URI HTTP/version
Full:
(General-Header - Date / Pragma
Request-Header - From / If-Modified-Since / Referer / User-Agent
Entity-Header) - Content-Encoding / Content-Length / Content-type /
Expires / Last-Modified
CRLF
[Entity-Body] *OCTET
Response:
1xx informational
2xx successful
3xx redirection
4xx client error
5xx server error
| |
|
Servers |
Clients |
| HTTP |
Windows |
IIS; Apache |
IE; FireFox; Netscape; Mozilla |
| Linux |
Apache |
FireFox; Netscape; Mozilla |
| FTP |
Windows |
IIS; ServU |
WSFTP; CuteFTP; FFFTP; FlashFTP; SmartFTP |
| Linux |
proftpd |
(command line) |
| Mail |
Windows |
IIS; MS Exchange; KerioMailServer |
MS Outlook; Outlook Express; Foxmail; Eudora |
| Linux |
Postfix |
(command line) |
| Proxy |
Windows |
CCProxy |
/ |
| Linux |
squid |
/ |
|