Closed
Description
Eberhard Wolff opened SPR-5536 and commented
If you call getForObject() on an RestTemplate it does not use HTTP GET. The reason is that SimpleClientHttpRequest calls FileCopyUtils.copy(bufferedOutput, this.connection.getOutputStream()); . On Mac OS X JDK 1.6 this connection is sun.net.www.protocol.http.HttpURLConnection and getOutputStream() contains this code:
if(method.equals("GET"))
method = "POST";
making it a POST.
Affects: 3.0 M2
Attachments:
- RestDoesNotDoGetTest.java (1.48 kB)