You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <o....@dplanet.ch> on 2003/03/12 21:07:08 UTC
Re: Bug? HttpMethod.removeRequestHeader( "User-Agent" ) does not
remove the header
Mike,
Of course, the users should be able to do silly things if they insist.
But do not think we should actively participate. I find current
HttpClieet's behavior correct. At the same time, I could live with a
patch
Oleg
On Wed, 2003-03-12 at 20:48, Michael Becke wrote:
> > 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.
>
> My only concern is that a method should contain a User-Agent header,
> according to the RFC. If people don't see this as such a big deal then I
> say go for it.
>
> Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>