Announcement Announcement Module
Collapse
No announcement yet.
HTTP Headers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Headers

    I'm using HttpOutboundEndpoint but can't see any way to add my own http headers without maybe using AOP. The JavaDoc of CommonsHttpRequestExecutor suggests you can override the setRequestBody method

    Code:
    "Set the given byte stream as the request body.
    	 * <p>This implementation simply sets the byte stream as the
    	 * EntityEnclosingMethod's request body. This can be overridden, for
    	 * example, to write a specific encoding and potentially set appropriate
    	 * HTTP request headers"
    but it's marked as private. Any ideas anyone??
Working...
X