If the User-Agent header is null the default value is used (take a look at HttpMethodBase.addUserAgentRequestHeaderfrom the system property "httpclient.useragent" and defaults to "Jakarta Commons-HttpClient/2.0alpha3". To change this value you should either set the "httpclient.useragent" system property or set the User-Agent header to something other than null.
This makes sense from an internal point of view, but from a user's perspective it's kind of weird: You call removeRequestHeader and it doesn't get removed. I was wondering if we should modify HttpMethodBase so that it adds the default User-Agent header in the constructor and in recycle() instead. That way, removeRequestHeader would work.
If folks think this is a good idea, I'll submit a patch.
Laura Werner BeVocal
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]