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 Requests Using Telnet

Dylan Thunn
Dylan Thunn
22,658 Points

Can't get this to work in workspace or on my computer, wondering why.

Whenever I type telnet httpbin.org 80 into workspace in immediately kicks back closed by a foreign host before I can type anything in, and when I do it on my computer my terminal (using windows 7), goes into a black abyss. Any thoughts?

1 Answer

You need to install telnet (if its not) per the instructions are in the teacher's notes. Type the following into workspaces: telnet httpbin.org 80

Then, fast, while the above is running, quickly also type in:
Get / HTTP/1.1 (+ enter, be sure to enter the spaces & use caps where noted)
Host: httpbin.org (+ enter) (enter - yes a second time!)

In my case, this appeared while I was typing in the rest: Trying 35.153.107.164...
Connected to httpbin.org. Then the whole pages of data appeared. It sounds like your ISP (or local internet connection) may be blocking something. I would try to ask them what would be closing your connection to telnet, as it is free and not secured by anything. Also you need to add the 2 other lines quickly, before it times out. Also, be sure to hit enter twice at the end. Post here again if you still can't get it to work.