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.
“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.