I have to use HttpClient 2.0 (can not use anything newer), and I am running into the next issue. When I use the method (post, in that case), it “codify” the parameters to the Hexadecimal ASCII code, and the “spaces” turned into “+” (something that the receiver don’t want).
Does anyone know a way to avoid it?
Thanks a lot.
Even your browser does that, converting space character into +. See here http://download.oracle.com/javase/1.5.0/docs/api/java/net/URLEncoder.html
It encodes URL, converts to UTF-8 like string.
Also, see here http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1
To answer your question, if you do not want to encode. I guess, URLDecoder.decode will help you to undo the encoded string.