Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools HTTP Basics Introduction to HTTP HTTP Response Format

'telnet httpbin.org 80' not working

When I type telnet httpbin.org 80, the command prompt goes blank until i press any key, where it tells me i made a bad request

Hi Matthew: After typing in telnet httpbin.org 80, you should see:

Trying 54.175.222.246...
Connected to httpbin.org.
Escape character is '^]'.

Are you not seeing this yet/still? Perhaps you need to install Telnet.

10 Answers

Ksenia Breitenmoser
Ksenia Breitenmoser
20,874 Points

Guys, did you hit Enter twice after Host: httpbin.org? I had the problem because I hit it only once as I was not attentive to the video.

Mairum Leal Ferreira
Mairum Leal Ferreira
23,508 Points

Thanks this helped for me. Was able to get it to work in workspaces. No luck in windows 10 in command promt though.

Ian Ostrom
seal-mask
.a{fill-rule:evenodd;}techdegree
Ian Ostrom
Full Stack JavaScript Techdegree Student 10,331 Points

This worked for me too. And in response to those who say it is not worth the effort to get Telnet working... we'd miss out on ASCII Star Wars. Type this to watch the film: telnet towel.blinkinlights.nl

Madeline Yao
seal-mask
.a{fill-rule:evenodd;}techdegree
Madeline Yao
Full Stack JavaScript Techdegree Student 9,611 Points

Hello everyone, I experienced the similar problem like Matthew. When I typed telnet httpbin.org 80 into my computer, the screen went blank and I don't know why. Also, I typed GET/ HTTP/1.1 and Host: httpbin.org into the screen. The command prompt told me the connection is lost and I do not know why it happened. Could anyone please explain about it? Thank you!

Jason Ziegler
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jason Ziegler
Full Stack JavaScript Techdegree Graduate 39,583 Points

Hi, Madeline Yao, I experience the same issue on Windows 7.

From what I can tell researching, the blank screen is the connection screen. Once that blank screen appears you can hit CTRL+] and that will bring up a telnet screen. from here type in 'set Localecho' you will get a response saying local echo is on. Now hit enter. this will take you back to your connection. Now when you type you will see the characters.

Now here is where I am still stuck. I always get an error message here and the connection is lost.

Hope this helps.

This is outdated. Telenet doesn't work anymore like how he showed. Avoid this just learn and watch stuff no need live-action.

ywang04
ywang04
6,762 Points

Are you using MAC or WINDOWS? If windows, have you installed telnet already?

I had to try it a few times before it worked. I wasn't typing fast enough and sometimes I would have a typo because I was trying to type fast. I had to get used to it and now it works for me every time.

Mike Hatch
Mike Hatch
14,940 Points

This was my experience, too. For everyone else having issues, take a look at what Michelle said. Keep trying.. Cntrl C out if you have to and try again. It eventually worked without having to install anything. I'm on Win 10 and used the Workspace.

Kimmo Ojala
seal-mask
.a{fill-rule:evenodd;}techdegree
Kimmo Ojala
Python Web Development Techdegree Student 8,257 Points

I have the same issue. I'm using Windows 10 cmd. Also tried to install another telnet tool called PUTTY, but it didn't open a connection to http.org 80 and neither to google.com 80.

Jason Donmoyer
Jason Donmoyer
Courses Plus Student 21,529 Points

If you are running OS 10.13 or higher on a mac and using the Terminal, you will have to install Telnet. You will need to also install Homebrew first, then type 'brew install telnet' at the prompt.

I think you will have to type very fast. Just type it will return the response, experienced the same on Win 10 cmd.

Nikos Tzouvelekis
Nikos Tzouvelekis
8,155 Points

Hi everyone , if the telnet have not install the cmd says : is not recognized or something like this ... so the telnet with cmd of windows have some issues... try this from Linux or form workspace here (i have Ubuntu command line downloaded from app store for windows ) .. after that the httpbin.org has closed so try something else .. ex : telnet treehouse.com 80

:)

Roger Hwang
Roger Hwang
3,851 Points

Didn't he instruct us on Telnet 2 sections prior to this, so am wondering why suddenly talk about the issues here? Not sure if this will ever be used again but for the sake of this course? People use Postman these days.

Dawid Jacobs
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dawid Jacobs
Full Stack JavaScript Techdegree Graduate 17,835 Points

Hi all, so from what I could gather, after connecting to telnet (when the blank screen appears). You should type the GET request and hit enter(Note it will not appear on the screen) afterwards type the Host line and hit enter twice. afterwards the correct information will show up on powershell, but it wil be all over the screen (not structured) so my advice is just to use the workspaces attached for the sake of learning telnet.