title: How to disable URL encoding in Spring RestTemplate?
body: <pre><code>String url = serverUrl + metadata.getUri();
  response = restTemplate.exchange(url, metadata.getAction(), requestEntity, metadata.getResponseType());
  </code></pre>
  
  <p>url contains the string </p>
  
  <blockquote>
    <p><a href="https://localhost/api/fm/info/dump/a" rel="nofollow noreferrer">https://localhost/api/fm/info/dump/a</a>\b\f\20170722_225714.jpg?lastModified=1507881481909</p>
  </blockquote>
  
  <p>Spring RestTemplate encodes it to the following when requesting to server</p>
  
  <blockquote>
    <p><a href="https://localhost/api/fm/info/dump/a%5Cb%5Cf%5C20170722_225714.jpg?lastModified=1507881481909" rel="nofollow noreferrer">https://localhost/api/fm/info/dump/a%5Cb%5Cf%5C20170722_225714.jpg?lastModified=1507881481909</a></p>
  </blockquote>
  
  <p>FYI, I need to disable URL encoding so that the '\' characters are available on server side as it is a business requirement since our web server (Nginx) has been configured to perform some checks based on the path of the request containing '\' character.</p>