URLQueryEncode

URLQueryEncode[key1val1,key2val2,]

creates a URL-style query string from an association of keys and values.

URLQueryEncode[{param1val1,param2val1,}]

creates a query string from a list of rules.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Encode a list of parameters:

In[2]:=
Click for copyable input
Out[2]=

Use Missing or None to represent a missing parameter value:

In[1]:=
Click for copyable input
Out[1]=

Nested lists are flattened:

In[1]:=
Click for copyable input
Out[1]=

URL and CloudObject can be encoded as values:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Options  (3)

Possible Issues  (1)

See Also

URLQueryDecode  URLBuild  URLEncode  URLDecode  URLParse

Introduced in 2014
(10.0)
| Updated in 2016
(11.0)