Documentation error

const StringArray& URL::getParameterNames ( ) const noexcept

Returns an array of the names of all the URL’s parameters.

E.g. for the url “www.fish.com?type=haddock&amount=some+fish”, this array would contain two items: “type” and “[color=#FF0000]haddock—>amount instead[/color]”.

You can call getParameterValues() to get the corresponding value of each parameter. Note that the list can contain multiple parameters with the same name.

See Also
getParameterValues, withParameter

Thanks!

Hello,

I have problem with url parameters :

URL url ("www.fish.com"); DBG (url.withParameter ("amount", "some fish").toString(true));
outputs www.fish.com?amount=some%20fish
where is the ‘+’ ?

Salvator

OSX 10.7.5
recent tip from 15 april 2013

Pretty sure I stopped it using a “+” because of some kind of problem… It was a long time ago though, and I can’t remember the details. It shouldn’t make any difference though, %20 parses to exactly the same result.