You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Thomas Sauzedde <th...@gmail.com> on 2009/09/10 12:26:39 UTC
[CXF client] Why User-Agent is NOT something I can overwrite (HTTP
transport) ?
Hi everybody,
I did some investigations and for what I saw, it seems that the
User-Agent is not something I can overwrite easily ...
It is not an HTTPConduit property and it is something deeply "hardcoded"
from the Version (final class) ...
It looks like by implementing my own HTTPUrlConnectionFactory I could
set what I want, but I would like to understand such a limitation before ;-)
BTW, in
http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html,
in the description of the BrowserType property, it is a bit confusing :
Specifies information about the browser from which the request
originates. In the HTTP specification from the World Wide Web consortium
(W3C) *this is also known as the /user-agent/*. Some servers optimize
based upon the client that is sending the request.
Regards
--
Tom
Re: [CXF client] Why User-Agent is NOT something I can overwrite (HTTP transport) ?
Posted by Daniel Kulp <dk...@apache.org>.
Most likely, there just hasn't been a request/need for it. Feel free to log
a jira and attach a patch. :-)
Dan
On Thu September 10 2009 6:26:39 am Thomas Sauzedde wrote:
> Hi everybody,
>
> I did some investigations and for what I saw, it seems that the
> User-Agent is not something I can overwrite easily ...
>
> It is not an HTTPConduit property and it is something deeply "hardcoded"
> from the Version (final class) ...
>
> It looks like by implementing my own HTTPUrlConnectionFactory I could
> set what I want, but I would like to understand such a limitation before
> ;-)
>
> BTW, in
> http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
> , in the description of the BrowserType property, it is a bit confusing :
>
> Specifies information about the browser from which the request
> originates. In the HTTP specification from the World Wide Web consortium
> (W3C) *this is also known as the /user-agent/*. Some servers optimize
> based upon the client that is sending the request.
>
>
> Regards
>
> --
> Tom
>
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog