Our code uses Asyncresttemplate as follows
String uri = http://api.host.com/version/test?address=%23&language=en-US&format=json
getAysncRestTemplate().getForEntity(uri, String.class);
But %23
is double encoded in Rest template as %2523
and the url becomes
http://api.host.com/version/test?address=%2523&language=en-US&format=json
,
But I need to pass encoded string, It doesn't encode if I pass decoded data '#'
How can I send this request without double encoding the URL?
Already tried using UriComponentsBuilder Avoid Double Encoding of URL query param with Spring's RestTemplate