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

Shadow Skillz
Shadow Skillz
3,020 Points

http request ?

when ever I try to telnet to httpbin,org it tells me connection closed by a foreign host. Does anyone know a work around or a solution

Justin Molyneaux
Justin Molyneaux
13,329 Points

You are being closed out by the httpbin.org server (~60 seconds) because you are not communicating with the server or at least if you are trying to communicate with it, it's not receiving your commands.

I found that you have to type quickly and it helps to watch the video once. Write down what Chris says and then follow it again and type the commands he says.

From the beginning of the video type the following in your command line:

telnet httpbin.org 80

[press ENTER KEY]

GET / HTTP/1.1 Host: httpbin.org

[press ENTER KEY] [press ENTER KEY]