Briefly compare SMTP with HTTP. Both protocols are used to transfer files from one host to another: HTTP transfers
files from a Web server to a Web client; SMTP transfers files from one mail server to another mail server. When transferring
the files, both persistent HTTP and SMTP use persistent connections. The two protocols have common characteristics.
There are important differences:
- HTTP is mainly a pull protocol--someone loads information on a Web server and users use HTTP to pull
the information from the server at their convenience. The TCP connection is initiated by the machine that wants to receive
the file. On the other hand, SMTP is primarily a push protocol--the sending mail server pushes the
file to the receiving mail server. The TCP connection is initiated by the machine that wants to send the file.
- SMTP requires each message, including the body of each message, to be in 7-bit ASCII format. If the message contains
characters that are not 7-bit ASCII or contains binary data, then the message has to be enclosed into 7-bit ASCII. HTTP
data does not impose this restriction.
- A document consisting of text and images is handled. HTTP encapsulates each object in its own HTTP response message.
Internet mail places all of the message's objects into one message.
|