Ollie,
That was a conscious design decision. Ideally one should be using
HttpState#addCoookie method to add cookies to the HTTP state used by
HttpClient.
Lately, however, quite a few people complained about inability to add
'Cookie' request headers as a limitation of the existing cookie
management API. I am planning to provide a patch against CVS HEAD to
address the problem. It's too late to change the 2.0 branch which is
already in the final release phase.
Regards,
Oleg
On Tue, 2003-10-21 at 19:48, Ollie Rutherfurd wrote:
> Hi,
>
> I'm using HttpClient 2.0 rc-2 and having a problem adding a request header named
> "Cookie".
>
> Using the following:
>
> method.addRequestHeader("Cookie", "MOIN_ID=\"...\"");
>
> I don't see a "Cookie" header, combing through the logging output with
> "org.apache.commons.logging.simplelog.log.httpclient.wire"="true".
>
> Using the following:
>
> method.addRequestHeader("FooHoo", "WooWee");
>
> I do see "FooHoo", so this seems to be specific to "Cookie" unless I'm missing
> something or doing something wrong.
>
> Is this a bug or by design? I'd like to be able to send a cook value with
> having to deal with policies, etc...
>
> Thanks,
> -Ollie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]