When sending a http request with a + in the a field (in this case a field that contains an international phone number with + XX XXXX) the + is replaced with a space.
However in the receiving endpoint needs the +, is there a way to replace the + with %2B so a + character is sent to the receiver ?
We don't want the %2B in the field as it confuses people so we want to handle this issue 'behind the screens'.
Solved! Go to Solution.
It is a soap request I am sending. Yes it is a POST (see snippet). In the RAW the + is still visible however when processing it in a HTTP JMS Gateway the + is translated to a space character.
A snippet of the post:
POST http://localhost:XXXX?q=XXX.XXXXXX.XXXX.Aanvraag.1.XX.Queue&token=XXXXXX HTTP/1.1
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)
<Naam>Dhr. R. Pleaseman</Naam>
<TelefoonnummerMobiel>00+31 (0)6-29 60 01 163</TelefoonnummerMobiel>
richie, nmrao - great job here!
Hi @Pabe1975, please let us know if the suggestions helped!