Check connection to a web server with telnet

If you just want a quick and sure way to check your connection to a web server without using a browser, you can use telnet. Here is how:

telnet host_name port

Then you should see output similar to the following

Trying host_name...

Connected to host_name.

Escape character is '^]'.

Then, you can type the following to retrieve a file in raw ASCII:

GET /index.html HTTP/1.0

For those of you who want to take this further, here is Best Viewed with telnet to port 80 initiative for you.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s