I have the need to pass the literal ‘+’ sign in a url string with the http plugin, however whenever I do the plugin decides that it should escape it as %20 rather that %2B.
I am aware that ‘+’ is a string concatenation method for query strings, however shouldn’t the only time that it encodes something to %20 is when I pass ’ '?
I got around it by just doing an escape() on the string prior to calling the http plugin, it did the ‘+’ right.
Actually, i was wrong, escape(‘+’) wont work. it returns a ‘+’ which the plugin still interprets as %20.
So I just did var query = utils.stringReplace(query, “+”, “%2B”);
Bit of a goofy work around, but it does it.