url build-query
for network
Converts record or table into query string applying percent-encoding.
Signature
> url build-query {flags}
Input/output types:
input | output |
---|---|
record | string |
table | string |
Examples
Outputs a query string representing the contents of this record
> { mode:normal userid:31415 } | url build-query
mode=normal&userid=31415
Outputs a query string representing the contents of this 1-row table
> [[foo bar]; ["1" "2"]] | url build-query
foo=1&bar=2
Outputs a query string representing the contents of this record
> {a:"AT&T", b: "AT T"} | url build-query
a=AT%26T&b=AT+T