Article ID: 279466 - View products that this article applies to.
This article was previously published under Q279466
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/prodtech/IIS.mspxFor more information about IIS 7.0, visit the following Microsoft Web site:
Occasionally, a Web browser is not available to test connectivity to a Web server. This step-by-step article describes a process that you can use to connect to a Web server and display the HTML contents of Web page by using a console or command-line based telnet application.
For more information, visit the following RFC Web site:
RFC 2616To request the document that is located at http://ServerName/VirtualDirectory/WebPage.asp from a telnet client, type the following commands at the console or command prompt (press ENTER or RETURN after each line):
telnet ServerName 80After you type the second command, the HTML data in WebPage.asp is returned to the telnet client from the Web server.
NOTE: This example assumes that the Web server is configured to use the default HTTP port (TCP 80). If the Web server is listening on a different port, substitute that port number in the first line of the example. Also, this example does not work properly over an HTTPS/SSL connection (TCP 443, by default), because the telnet client cannot negotiate the necessary encryption commands to establish the SSL session. Although an initial connection is possible over the HTTPS/SSL port, no data is returned when you issue a GET request.
Enable Local EchoBy default, the telnet client that is included with Microsoft Windows does not have the Local Echo option enabled, so the second command does not appear to be received by the server, although it is. To enable Local Echo, use one of the following methods after the first command:
Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows Millennium Edition (Me), or Microsoft Windows NT 4.0
Microsoft Windows 2000 and Microsoft Windows XP
Character Set 128-255
(http://msdn.microsoft.com/en-us/library/6c608ydz(VS.85).aspx)After you type the last number, release the ALT key. In the case of the GET request that this article uses as an example, type the following command (note that the numbers are typed on the keypad):
GET /VirtualDirectory/WebPage.asp <ALT-key>0013<ALT-key>0010If you are using a telnet client that does not send CRLF when you press ENTER or RETURN, see the documentation for that computer system for information about how to send extended characters.
For additional information about how to view network packets, click the article numbers below to view the articles in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/148942/EN-US/ )How to Capture Network Traffic with Network Monitor
294818For additional information about the TELNET protocol, click the article numbers below to view the articles in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/294818/EN-US/ )Frequently Asked Questions About Network Monitor
(https://support.microsoft.com/kb/231866/EN-US/ )The TELNET Protocol
(https://support.microsoft.com/kb/253918/EN-US/ )Description of the Telnet Client in Windows 2000
Article ID: 279466 - Last Review: July 7, 2008 - Revision: 4.5