url_query — builds a URL query from parameter-value pairs
Builds a URL query out of a list of parameter-value pairs. If the argument list has an odd length the last element is silently discarded. The values of each pair in the list are passed through ::rivet::escape_string for proper representation of characters that could break the URL syntax
set query [::rivet::url_query par1 val1 par2 val2 par3 val3] puts $query par1=val1&par2=val2&par3=val3