Parse Query String with HTTPclient to extract nameValuePairs

Muhammad Hewedy picture Muhammad Hewedy · Jun 2, 2010 · Viewed 11.2k times · Source

Is there Apache utility that takes Query String and some encoding and return Map of key,value[] url decoded?

Answer

Joseph Jaquinta picture Joseph Jaquinta · Nov 10, 2014

If you are using a 4.x version of HttpClient, you will want to use URLEncodedUtils.parse(). It takes a URI (or string + charset) and returns a List of NameValuePairs.