How to Telnet. *Old School

So lets say that you want to get a 200 request from a website such as: Sports.yahoo.com. How would you go about accomplishing that? What about Sports.Yahoo.com/NFL

The structure of the telnet request is:

telnet urlthatyouwanttoaccess.com portnumber (press enter)

GET (space) HTTP/1.1

host: urlthatyouwanttoaccess.com

  • telnet is the command, this is separated by a single space.
  • Then the URL of the site that you are making the telnet request to.
  • Followed by the port number, in most cases a website would be port 80.
  • Once you press Enter, you will put the request type.
  • In this instance GET (note the caps) then the request protocol HTTP/1.0 or 1.1. Then press Enter.
  • To finish the request type | host: URLyouwanttoaccess.com and select Enter.

NOTE: If you want to output the request into a text file, you can use: telnet urlthatyouwanttoaccess.com 80 > telnetoutput.txt | This will place the output of the request into a text file in the current directory.

 

 

Advertisements
How to Telnet. *Old School

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