3

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.

Genesis
  • 8,038
  • 3
  • 21
  • 22

1 Answers1

2

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

Gordan
  • 36
  • 2