Closed
Description
Graham Zabel opened SPR-5866 and commented
Hi,
When sending GET and POST requests, we are required to send a Security token in the HTTP header. Currently with RestTemplate there is no easy way to set headers on the request.
The only way that seems possible is to provide a custom RequestCallback, in which the httpRequest object can be manipulated in doWithRequest(), making all but the execute() method unusable.
Is there a clean and easy way to set http headers on requests? (I can't think of one without some significant rewrites).
thanks,
Graham
Issue Links:
- Introduce HttpEntity [SPR-6969] #11634 Introduce HttpEntity ("depends on")
2 votes, 6 watchers