SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
James F. Kurose, Keith W. Ross
Chapter:
Application Layer
Exercise:
Problems
Question:14 | ISBN:9780132856201 | Edition: 6

Question

How does SMTP mark the end of a message body? How about HTTP? Can HTTP use the same method as SMTP to mark the end of a message body? Explain.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

Simple Mail Transport Protocol (SMTP) uses a line containing only a period to mark the end of a message body.

Hyper Text transport Protocol (HTTP) uses “Content-Length header field” to indicate the length of a message body.

No, Hyper Text transport Protocol (HTTP) cannot use the method used by Simple Mail Transport Protocol (SMTP), because Hyper Text transport Protocol (HTTP) message could be binary data, where as in Simple Mail Transport Protocol (SMTP), the message body must be in 7-bit ASCII format.

0 0

Discussions

Post the discussion to improve the above solution.