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 trialKevin Veerasammy
7,786 PointsHTTP request: Fill in the missing symbols of the query string in the request line of the following HTTP request:
Hi All, I am struggling with this problem here..
GET /books___type_kindle___sort=popular HTTP/1.1
Host: amazon.com Accept-Language: en-US
i placed in /books?name=value1&type=value2&kindle=true&
and im getting incorrect. not too sure how to solve this. Help!
4 Answers
Michael Afanasiev
Courses Plus Student 15,596 PointsWe search for books with ? the type needs to be equal = to kindle, and & we have to sort it by popularity. Basically it should be GET /books?type=kindle&sort=popular HTTP/1.1
Jason Anders
Treehouse Moderator 145,860 PointsHey Kevin,
For this quiz, the first blank get the question mark (?). As this will start the GET request.
The second blank gets the equal sign (=), because it needs to know what the 'type' is equal to.
The final blank gets the ampersand (&), because it is adding additional parameters.
Hope that helps.
Kevin Veerasammy
7,786 PointsAppreciate the help Jason! Thank you!
Michael Afanasiev
Courses Plus Student 15,596 PointsHi Kevin,
You only need to put the operators ? = & in their correct places.
Kevin Veerasammy
7,786 PointsHello Michael,
So basically.. /books?=&type=&kindle=&sort=popular HTTP/1.1 ?
I tried this.. still nothing :(
Kevin Veerasammy
7,786 Pointstotally confused and lost. I know its /get?resource=value1&resource2=value2&resource3=value3 But i tried that format it is not working.
Kevin Veerasammy
7,786 PointsWOW THAT SIMPLE!! THANKS MICHAEL! YOU ARE THE BEST!!!! I was wrestling with this all morning!!
Michael Afanasiev
Courses Plus Student 15,596 PointsHaha don't worry Kevin, I was struggling with this one too at first! Glad I could help you out!
Amal Shanker
7,200 PointsAmal Shanker
7,200 PointsThanks for providing the context Michael
mattiapontonio
14,991 Pointsmattiapontonio
14,991 PointsThank You Michael
adam knapp
2,188 Pointsadam knapp
2,188 Pointsthank you for the answer. Was this covered in the video? I don't recall it?