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:
Review
Question:14 | ISBN:9780132856201 | Edition: 6

Question

Telnet into a Web server and send a multiline request message. Include in the request message the If-modified-since: header line to force a response message with the 304 Not Modified status code.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

“telnet” command:

 It is a command used in windows (also in linux) to connect to the web server. The server responds to the HTTP GET requests. It reply to the client with the requested information.

 

Command to open the connection with web server:

        telnet <domain name of web server> <port number>

 

example: telnet www.sr2jr.com 23

 

After establishing the connection with the web server, it is possible to request a specified page from the web server.

 

Command to request the page web server:

        GET <page name> HTTP/1.0

 

If the page is available then the server sends the page details. It include the “If-modified-since” message with the 304 Not Modified status code in the response.

0 0

Discussions

Post the discussion to improve the above solution.