Hi Benjamin,
I've just test this and it works but both the internal HTTP client and the
Apache HTTP client extension.
ClientResource resource = new ClientResource("http://localhost:8182/");
resource.getClientInfo().setAgent("MyHttpClient");
Could you test again?
Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com
-----Message d'origine-----
De : Benjamin Erb [mailto:[email protected]]
Envoyé : lundi 19 juillet 2010 23:12
À : [email protected]
Objet : RE: Re: How to set useragent as jakarta Commons HttpClient
Hi Thierry,
I can't set the user agent that way either. It always remain "Restlet
Framwork", no matter what I set.
Regards
> Hi Daniel,
>
> I think you can use request.getClientInfo().setAgent()
>
> Best regards,
> Thierry Boileau
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2635377
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2667211