I'm integrating with an ancient service that isrewriting the url with a jsessionid when I call it. I'm using resttemplate to talk with the service, and problem is that it is following the redirect forever, since I'm not setting the jsession cookie.
I'd like to turn off following redirects in spring resttemplate.