Transporting blank values in URL queries

Posted . Visible to the public.

URLs can transport key/value pairs ("parameters") using this syntax:

/path?foo=bar

If the value is blank, mind these subtle differences:

URL Meaning
/path?foo= Parameters have a key foo. Its value is an empty string.
/path?foo Parameters have a key foo. Its value is null.
/path Parameters have no key foo.
Henning Koch
Last edit
Henning Koch
Keywords
search, query, section, params
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2021-01-04 10:29)