Oleg

RFC2616, section 4.4 states that "Messages MUST NOT
include both a Content-Length header field and a non-
identity transfer-coding. If the message does include a
non- identity transfer-coding, the Content-Length MUST
be ignored."

That is why I set filePart.setTransferEncoding(null).

Unfortunately the server I send the data to requires the length to be sent.

The question is: How can I configure the client to add this request header?

Thank you for your help.

Oliver


> -----Urspr�ngliche Nachricht-----
> Von:
> [EMAIL PROTECTED]
> e.org
> [mailto:[EMAIL PROTECTED]
> ta.apache.org]Im Auftrag von Oleg Kalnichevski
> Gesendet: Mittwoch, 9. Februar 2005 22:22
> An: HttpClient User Discussion
> Betreff: Re: Set Content-length in mulitpart headers
>
>
> Oliver,
>
> You are confusing 'Transfer-Encoding' of the HTTP content and that of a
> MIME part within a multipart/form-data encoded content.
>
> It's been a while since I looked at the spec but if my memory does not
> fail me, Content-length was not required for a MIME part.
>
> Oleg
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to