Genesis
Genesis

Reputation: 8158

Custom HTTP headers with XmlRpcClient

I was wondering if anyone knows how to send custom HTTP headers using an XmlRpcClient in Java?

I see a custom header can be set using XmlRpcHttpTransport.setRequestHeader() but I don't see a way of tying this in with the XmlRpcClient itself.

Upvotes: 3

Views: 2338

Answers (1)

Gordan
Gordan

Reputation: 36

I Encountered the same problem and solved it by implementing XmlRpcTransport and overriding initHttpHeaders method. Here is an example: http://jugojava.blogspot.com/2011/03/custom-http-headers-with-xmlrpcclient.html

Upvotes: 2

Related Questions