On Wed, Sep 09, 2009 at 12:00:25PM +0530, Hiranya Jayathilaka wrote:
> Hi Devs,
> 
> Is there a way to get the message size (in bytes) from a HttpRequest object?
> What is the right way to go about doing this?
> 
> Thanks
>

Hiranya,

HttpEntity#getContentLength() is what you want. If this method returns a
negative value, the content length is unknown / generated dynamically using
the chunk or identity coding.

Hope this helps

Oleg  


 -- 
> Hiranya Jayathilaka
> Software Engineer;
> WSO2 Inc.;  http://wso2.org
> E-mail: [email protected];  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to