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

can't get telnet to work? use postman

I could not get telnet to work on my admin cmd window or treehouse workspaces ... instead I went to chrome Postman and type httpbin.org:80/ and httpbin.org:80/treehouse to mimic what the instructor was doing

Postman is a chrome addon

Natraj Loganathan
Natraj Loganathan
11,392 Points

You can enable telnet by running,

dism /online /Enable-Feature /FeatureName:TelnetClient

PS: You will need administrator privileges to run this command.

1 Answer

Chris Ramacciotti
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Chris Ramacciotti
Treehouse Guest Teacher

If you're having problems using Telnet on workspaces, please contact support at help@teamtreehouse.com, and include the details of your OS & browser. In any case, doing the following on workspaces should work:

telnet httpbin.org 80

GET /html HTTP/1.1
Host: httpbin.org

[press ENTER twice]

I have noticed that, sometimes, httpbin.org can be slow to respond. So be sure to give Telnet enough time to receive the response. It took about 15s to get the response from above. You could also try another website, such as Google, which is super quick:

telnet google.com 80

GET / HTTP/1.1
Host: google.com

[press ENTER twice]

I get a response from this right away, though it is a redirect:

HTTP/1.1 301 Moved Permanently                                                                                 
Location: http://www.google.com/                                                                               
Content-Type: text/html; charset=UTF-8                                                                         
Date: Thu, 20 Oct 2016 15:36:54 GMT                                                                            
Expires: Sat, 19 Nov 2016 15:36:54 GMT                                                                         
Cache-Control: public, max-age=2592000                                                                         
Server: gws                                                                                                    
Content-Length: 219                                                                                            
X-XSS-Protection: 1; mode=block                                                                                
X-Frame-Options: SAMEORIGIN                                                                                    

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">                                 
<TITLE>301 Moved</TITLE></HEAD><BODY>                                                                          
<H1>301 Moved</H1>                                                                                             
The document has moved                                                                                         
<A HREF="http://www.google.com/">here</A>.                                                                     
</BODY></HTML>
Ramy Elsaraf
Ramy Elsaraf
7,633 Points

how do you get down and type the second line without pressing enter ????