Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!