Quiz Entry - updated: 2026.06.20
What is the syntax for URL query parameters?
Query parameters are key=value pairs tacked onto the URL after a ? and joined by &.
Format:
/path?key1=value1&key2=value2
Example:
GET /customer?first=John&last=Doe HTTP/1.1
Breakdown:
?- Starts the query stringfirst=John- First parameter (key=value)&- Separator between parameterslast=Doe- Second parameter
URL encoding: Special characters must be encoded:
- Space →
%20or+ &→%26=→%3D
Example with encoding:
/search?q=hello%20world&lang=en