LOGBOOK

HELP

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 string
  • first=John - First parameter (key=value)
  • & - Separator between parameters
  • last=Doe - Second parameter

URL encoding: Special characters must be encoded:

  • Space → %20 or +
  • &%26
  • =%3D

Example with encoding:

/search?q=hello%20world&lang=en

From Quiz: WEBT / Backend Development | Updated: Jun 20, 2026