How to send data via a query using a GET request to retrieve more detailed content?
Lets telnet to:
telnet httpbin.org 80
GET /get?firstname=Chris@language=English HTTP/1.1
Examining the GET Request.
GET is the command to ask for the content.
/get is the resource or folder where the content is located at on the server.
? tells the the server to retrieve and respond back with content that meets the criteria of having a”firstname” of “chris and language of English using the HTTP 1.1 protocol.
As we can see in the screenshot above that the server return the content in a format called JSON.
Another point to note is the header, “Content-Length: 211” .
This means that the JSON data is 211 bytes.