chris_selwyn
15 years agoNew Contributor
Problems with double encoding of URLs
I have a problem with URLs getting double url-escape-encoded.
My WSDL has a URL that has a %20 in it (representing a space).
However, when I use SoapUI 3.5.1 (free version) to post a SOAP message to the URL, the URL gets messed with and the message ends up being posted to the wrong URL.
I have found the setting called "Pre-encoded endpoints".
If I leave this setting unset then the URL that gets posted to has %252520 in it. i.e the % has been encoded twice.
If I set the "Pre-encoded endpoints" setting then the URL that gets posted to has %2520 in it. i.e. the % has been encoded once.
It seems that the "Pre-encoded endpoints" setting reduces the number of times that the URL gets encoded from twice to once. But I really need it not to be encoded any further than it is already.
I have tried replacing the %20 with a " " (space) in the URL and setting the "Pre-encoded endpoints" option, hoping that this will cause the " " to be encoded as %20.
However, all that happens then is that I get an error saying "host parameter is not null".
Does any have any clues as to how to avoid url-encoding?
Chris Selwyn
My WSDL has a URL that has a %20 in it (representing a space).
However, when I use SoapUI 3.5.1 (free version) to post a SOAP message to the URL, the URL gets messed with and the message ends up being posted to the wrong URL.
I have found the setting called "Pre-encoded endpoints".
If I leave this setting unset then the URL that gets posted to has %252520 in it. i.e the % has been encoded twice.
If I set the "Pre-encoded endpoints" setting then the URL that gets posted to has %2520 in it. i.e. the % has been encoded once.
It seems that the "Pre-encoded endpoints" setting reduces the number of times that the URL gets encoded from twice to once. But I really need it not to be encoded any further than it is already.
I have tried replacing the %20 with a " " (space) in the URL and setting the "Pre-encoded endpoints" option, hoping that this will cause the " " to be encoded as %20.
However, all that happens then is that I get an error saying "host parameter is not null".
Does any have any clues as to how to avoid url-encoding?
Chris Selwyn