You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bryan Castillo <ca...@gmail.com> on 2007/05/23 22:34:11 UTC

HTTP User-Agent

I would like to set a custom value for the HTTP user agent, in an Axis
1.4 client.  The company I work for has recently started distributing
java libraries for accessing our webservice.  These libraries use
Axis, but provide convenience features that make it easier to use the
web service.  I'd like to put a custom name and version of the library
into the user agent, so I know what version of the library customers
are using.

It does not look like there is  a supported way to do this.  Cruising
through the code, I can see that
org.apache.axis.transport.http.HTTPSender pulls the user agent from
org.apache.axis.i18n.resource.properties.  It does look like you can
specify user supplied http headers to a MessageContext, but those
headers are written to the Socket after the user agent from the
properties file has already been written.

Does anybody have any suggestions for setting the user agent?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org