- Given the followin URL: https://amazon.com/Double-Stainless-Commercial-Refrigerator/B60HON32?ie=UTF8&qid=142952676&sr=93&keywords=commercial+fridge
a. identify the host - amazon.com b. identify the names of the query parameters - ie, qid, sr, keywords c. identify the values of the query parameters - UTF8, 142952676, 93, commercial+fridge d. identify the scheme - https e. identify the path - Double-Stainless-Commercial-Refrigerator/B60HON32 f. identify the port - URL does not contain a port. https default port is 443
-
Add the port 3000 to the following URL: http://amazon.com/products/B60HON32?qid=142952676&sr=93 -Answer: http://amazon.com:3000/products/B60HON32?qid=142952676&sr=93
-
Given the following URL: http://localhost:4567/todos/15
a. identify the query parameters - no query parameters b. identify the scheme - http c. identify the path - /todos/15 d. identify the host - localhost e. identy the pot - 4567
- What are the two different ways to encode a space in a query parameter? We didn't cover this in the lectures, so feel free to search online for the answer
- can be encoded as %20 or +
- What character indicates the beginning of a URL's query parameters?
- ?
- What cahracter is used between the name and value of a query parameter?
- =
- What character is used between multiple query parameters?
- &