Spring rest template get for entity giving 400 error
<p>I'm getting the following exception <code>org.springframework.web.client.HttpClientErrorException: 400 Bad Request</code></p>

<p>on this statement  <code>final ResponseEntity&lt;String&gt; entity = restTemplate.getForEntity("http://localhost:12001/api/profiles/bymsisdn/0747894146", String.class);</code></p>

<p>But I'm getting successful response using 
<em>curl url -X GET  "<a href="http://localhost:8001/api/profiles/bymsisdn/0747894146" rel="nofollow">http://localhost:8001/api/profiles/bymsisdn/0747894146</a>"</em></p>

<p>Extra notes: 
<code>resttemplate = new RestTemplate(); // No Headers or extra convertors added as I think it's not required because using  curl works fine</code> </p>