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.
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
精彩评论