[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-dev
Subject:    Re: [PATCH] Add the ability for XmlRpcClient user to set the HTTP User Agent header
From:       arh14 () cornell ! edu
Date:       2002-03-08 19:09:20
[Download RAW message or body]


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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic