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 Sending Data with a GET Request

amazon telnet

I tried to get to amazon it said 301 error!!! does that mean free books?

telnet> open amazon.com 80                                                                                       
Trying 54.239.25.200...                                                                                          
Connected to amazon.com.                                                                                         
Escape character is '^]'.                                                                                        
Get /books?type=kindle&sort=popular HTTP/1.1                                                                     
Host:amazon.com                                                                                                  
Accept-Language: en-US                                                                                           

HTTP/1.1 301 Moved Permanently                                                                                   
Date: Wed, 23 Mar 2016 01:15:48 GMT                                                                              
Server: Server                                                                                                   
Location: http://www.amazon.com/books?type=kindle&sort=popular                                                   
Content-Length: 264                                                                                              
Content-Type: text/html; charset=iso-8859-1                                                                      

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">                                                               
<html><head>                                                                                                     
<title>301 Moved Permanently</title>                                                                             
</head><body>                                                                                                    
<h1>Moved Permanently</h1>                                                                                       
<p>The document has moved <a href="http://www.amazon.com/books?type=kindle&amp;sort=popular">here                
</a>.</p>                                                                                                        
</body></html>          
Richard Hall
Richard Hall
9,139 Points

An http 301 error does not mean free ebooks, no. HTTP 301 is for permanent URL redirection.

wikipedia