> 3. is there any way to set the User-Agent string for an httpclient?

>> Nope, but this has come up before.  If there 
>> isn't one already, add an enhancement request to 
>> the Bugzilla database so we don't forget.

You can do this on a per-method basis:

method.setRequestHeader("User-Agent","My user agent");

Currently if there's no User-Agent, HttpMethodBase will add a default one,
but if one already exists, it will leave it alone. 

Reply via email to