Jump to content

Telnet/HTTP

From Wikiversity

Telnet is a command-line tool that provides access to a command-line interface on a remote host. It may also be used to test Transmission Control Protocol (TCP) connectivity. These activities will show you how to use Telnet to test an HTTP connection.

Preparation

[edit | edit source]

To prepare for this activity:

  1. Start Windows.
  2. Log in if necessary.
  3. Install the Telnet Client

Activity 1 - Test an HTTP Connection

[edit | edit source]

To test an HTTP connection:

  1. Open a command prompt.
  2. Type telnet <http server> <port>, where <http server> is the name or IP address of the http server to test and <port> is the port number the HTTP server is using. The default HTTP port is 80. For example, to test a connection to www.google.com, type telnet www.google.com 80. Then press Enter.
  3. If the connection is successful, you will see a blank screen waiting for input. Press <Ctrl>C to close the connection. You will see HTML error content indicating that the web server did not understand your request, however, the appearance of HTML content indicates a successful TCP connection to the HTTP server was made.
  4. Close the command prompt to complete this activity.

See Also

[edit | edit source]

References

[edit | edit source]