What I’m looking for specifically is some code in Java that will take a Map object and convert it into a query string that I can append to a URL I return. I’m sure there’s a library that does this and much more, but I can’t find it with a quick Google search. Anyone know of one that will do this?
What I’m looking for specifically is some code in Java that will take a
Share
I found apache httpcomponents to be a solid and versatile library for dealing with HTTP in Java. However, here’s a sample class, which might suffice for building URL query strings:
Usage: