开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜