I\'m trying to use RestTemplate in order to make a PUT. For some reason I can\'t reproduce the PUT I created using curl t
RestTemplate
PUT
curl
Agghr, so stupid. the missing part was the Accept header. Apparently curl adds Accept: */* by default. It's probably the endpoint implementation that expected proper Accept header. Adding this line solved the problem:
Accept
Accept: */*
headers.add("Accept", "*/*");