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

Benny Ogidan
Benny Ogidan
17,948 Points

Cannot use the workspace telnet

Connected to httpbin.org.
Escape character is '^]'.
GET /get?
HTTP/1.1 400 Bad Request
Connection: close
Server: Cowboy
Date: Mon, 03 Apr 2017 14:39:16 GMT
Content-Length: 0

Connection closed by foreign host.

3 Answers

Ruth O'Kelly
Ruth O'Kelly
4,944 Points

Joel, how do you move onto the next line after the second command on Windows? (I'm using workspaces).

Joel Kraft
STAFF
Joel Kraft
Treehouse Guest Teacher

Hi Benny Ogidan,

Looks like telnet is working, but you're getting a message "Bad Request" back. You're sending the request:

GET /get?

The server is expecting a querystring to follow after that "?" at the end. Try sending something like

GET /get?company=Treehouse&city=Portland HTTP/1.1
Host: httpbin.org

(Be sure to follow up with the second line as Chris describes in the course.)

Hope that helps!