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 trialAaron Selonke
10,323 PointsDuring the HTTP GET request, What is happening?
In the HTTP video Chirs makes a GET request GET /get?name=Chris&city=Portland HTTP/1.1
It returned a string of JSON formatted text (JSON script) there was no information other than the values that he entered..... Were these (city and name) established properties in the server? ?What actually happened, it just returned what he himself wrote in JSON script.
In other examples it returned XML script or simply the HTML of the webpage he was talking to.
Also, I'm not sure what differentiates TELNET from the UNIX command-line. The command line also communicates with Web-server, so why do we need Telnet for these HTTP communications?
2 Answers
Alexander Nortung
6,930 PointsSo he connected to http://httpbin.org/ and then he would go to /get (http://httpbin.org/get) and it will just return a JSON object. You can take a look at the page in your browser and even try to put in your own name-value pairs.
EDIT: conclusion: the site returned a JSON object
jason chan
31,009 Pointsyour grabbing information from the API. Since you have no access to database you interact with application by using rest api.
Get and post and more common. GEt is grab data. Post is to well post data
But you might need to get api key to get access the API.