Skip to content

Instantly share code, notes, and snippets.

@nex3
Created October 27, 2008 08:12
Show Gist options
  • Save nex3/20045 to your computer and use it in GitHub Desktop.
Save nex3/20045 to your computer and use it in GitHub Desktop.
(defun gist-make-query-string (params)
"Returns a query string constructed from PARAMS, which should be
a list with elements of the form (KEY . VALUE). KEY and VALUE
should both be strings."
(mapconcat
(lambda (param)
(concat (url-hexify-string (car param)) "="
(url-hexify-string (cdr param))))
params "&"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment