Hi Saminda, > Thanx for the quike reply. Let assume i'm sending a MTOM message in > POST. When chunking is -1, i am forced to give "Content-Length" header > parameter value, if "keep-alive" is ON. In that case Request Entity > calls xxx.getContentLenght(). Would this content-length value be > correct, if MTOM message is contain 1 Mb of data.
I don't know what you mean with "MTOM" message. Also, you don't have to give a Content-Length header. The method will automatically add it, provided that you told HttpClient not to use chunked encoding and that the request entity is able to compute the content length. As a general rule, if all elements of the request entity are in memory, it can compute the content length. If one of the elements is a stream, it can not. If you have to send a stream, you can still implement your own RequestEntity, or PartSource, to provide the required input for computing the content length. I suggest you just implement it, and tell us if the content length is not computed. If that should be the case, we'll help you with the details. It is hard to give you an exact answer without knowing what exactly you want to do. But rest assured, if your application has all the data it needs to compute the content length, we'll find a way for you to get that length into the HTTP request :-) hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
