URLQueryDecode

URLQueryDecode["string"]

decodes a URL-style query string into a list of key-value rules.

Details and Options

  • The keys and values in the list of rules returned by URLQueryDecode are given as strings.
  • The URL-style query string is taken to be percent-encoded.
  • URLQueryDecode has option CharacterEncoding, giving the encoding to assume for a character in the query string. The default is "UTF-8".
  • URLQueryDecode[URL["string"]] is also supported.

Examples

open allclose all

Basic Examples  (2)

Decode a query string:

URLQueryDecode automatically threads over lists:

Scope  (1)

A URL wrapper is stripped from an input:

Options  (3)

CharacterEncoding  (1)

Decode a percent-encoded string using specified encoding:

SortQueries  (1)

Sort query parameters by using "SortQueries":

RemoveEmptyQueries  (1)

Remove empty parameters by using "RemoveEmptyQueries":

Applications  (1)

Joining multiple query strings:

Wolfram Research (2014), URLQueryDecode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLQueryDecode.html (updated 2016).

Text

Wolfram Research (2014), URLQueryDecode, Wolfram Language function, https://reference.wolfram.com/language/ref/URLQueryDecode.html (updated 2016).

CMS

Wolfram Language. 2014. "URLQueryDecode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/URLQueryDecode.html.

APA

Wolfram Language. (2014). URLQueryDecode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/URLQueryDecode.html

BibTeX

@misc{reference.wolfram_2024_urlquerydecode, author="Wolfram Research", title="{URLQueryDecode}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/URLQueryDecode.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_urlquerydecode, organization={Wolfram Research}, title={URLQueryDecode}, year={2016}, url={https://reference.wolfram.com/language/ref/URLQueryDecode.html}, note=[Accessed: 22-November-2024 ]}