This is something that could be done with the interceptors patch for
example:
new XmlRpcClientInterceptor() {
public void preinvoke_preflatten(String remotehost, ObjectHolder
method, ObjectHolder params, ObjectHolder user, ObjectHolder password,
ObjectHolder auth, Properties headers, ObjectHolder closure) throws
XmlRpcException {
headers.setProperty("User-Agent", "whatever");
}
...
}
Aaron Hamid
CIT/I&D
Cornell University
--------------------------------
Hi all,
Not too sure if this is something you guys want to include. It is
within the spec at http://www.xmlrpc.com/spec:
A User-Agent and Host must be specified.
Basically, I needed to be able to set this because a service provider I
use requires this field to be used as a part of the "authentication"
process.