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

Sean Flanagan
Sean Flanagan
33,235 Points

Couldn't link to Telnet

Hi.

I typed:

GET / HTTP/1.1 

After a long pause:

HTTP/1.1 408 Request Timeout                                                                 
Connection: close                                                                            
Server: Cowboy                                                                               
Date: Tue, 30 Jan 2018 09:40:54 GMT                                                          
Content-Length: 0                                                                            

Connection closed by foreign host.

What happened and what can I do about it?

Sean

Cameron O'Brien
Cameron O'Brien
11,564 Points

Hello, I was having the same issue. I used this resource: https://dor.ky/restore-telnet-in-mac-os-high-sierra-10-13/ to check for telnet on my mac book pro since I heard it was removed from Sierra. Then I tried following his instructions again and continued to get the same results. Then I made sure that after typing:

telnet httpbin.org 80

and then

GET / HTTP/1.1
Host: httpbin.org

I pressed enter twice instead of just once and it seemed to work... for now.

1 Answer

Pressing enter twice also worked for me if you are having trouble in the treehouse workspace.