Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
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.