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

Daniel Hildreth
Daniel Hildreth
16,170 Points

Cannot Connect To Httpbin.org In CMD

So I installed and enabled Telnet on my machine. I am using Windows 8 BTW. However, when I type in telnet httpbin.org 80, I get invalid command that follows this error. I am running CMD as administrator too. Does anyone know why I am getting this error?

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

I get invalid command that follows this error.

It'd be best that you post the full error message whenever you encounter one. But invalid command usually means that the Telnet on your system hasn't been properly configured or installed, as CMD doesn't seem to be able to locate this command.

Here's what my screen looks like when typing telnet httpbin.org 80 on admin CMD.

HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 24 Jan 2017 08:17:26 GMT
Content-Type: text/html
Content-Length: 166
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>


Connection to host lost.

I'm on Win10 by the way.