I’m decoding a 2DDOC which stores a lot of URLs, I then, call those URL to get some certificates.
One of the retreived URL looks like this :
http://website/search.php?iHash=xvNLC1KMs03t%252FgxzdBYParPnf%252BM
But when I do a get with HTTP.exchange on this, I get a 400. Url is working with OKHTTP and Mozilla tho.
HttpEntity<Resource> response = http.exchange(URL, HttpMethod.GET, entity, Resource.class);
I guess this is the iHash=xvNLC1KMs03t%252FgxzdBYParPnf%252BM encoding that causes the issue.
Solution can’t be specific to this URL as it has to work with the other one too.
What would be the proper way to resolve this issue with http.exchange ?