Sylwester
= HttpClient adds default 'User-Agent' header only in case the header has been
explicitly given by the user
GetMethod httpget = new GetMethod("http://whatever.com/");
httpget.setRequestHeader("User-Agent", "Whatever-agent");
= By specifying -Dhttpclient.useragent=whatever-agent system property upon JVM startup
HttpClient will be instructed to use your own agent designation instead of a default
one
I hope this helps
Oleg
-----Original Message-----
From: Sylwester Lachiewicz [mailto:[EMAIL PROTECTED]
Sent: Montag, 17. M�rz 2003 10:46
To: Commons HttpClient Project
Subject: Re: Bug? HttpMethod.removeRequestHeader( "User-Agent" ) does
not remove the header
ok, i know that version should be in HttpClient Request, but i need
create new User-Agent header with my program version and httpclient
version eg.
User-Agent: MySuperProgram/1.0 HttpClient/2.0beta3
Its possible to add public static field in file like HttpClient.java and
use to create UserAgent?
Oleg Kalnichevski wrote:
>Hi Sylwester
>'User-Agent' header should include version information in case you are
>using a release. If you are using a CVS snapshot, there's usually no
>reliable way of telling. Simply stay current
>Oleg
>
>On Thu, 2003-03-13 at 10:33, Sylwester Lachiewicz wrote:
>
>
>>Hi,
>>Simple question - how i can get HttpClient version?
>>
>>Sylwester
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]