can you give me a sample code using content length?

On Mon, Aug 20, 2012 at 5:38 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2012/8/20 Sahana Voleti <sahanasithmas...@gmail.com>:
> > The documentation is fine but how do you use content length there?
> >
>
> I am logging the value of the "content-length" header.
>
> What that header means is defined in the HTTP protocol specification.
>
>
> > On Mon, Aug 20, 2012 at 5:10 PM, Sahana Voleti
> > <sahanasithmas...@gmail.com>wrote:
> >
> >> Is there any size limitations fr this apache commons upload? Also is
> there
> >> any standalone application I can use?
> >> I think there is some problem in parsing because of which I am getting
> >> multipart/formdata request failed.
> >>
> >>
> >> On Mon, Aug 20, 2012 at 5:03 PM, Konstantin Kolinko <
> >> knst.koli...@gmail.com> wrote:
> >>
> >>> 2012/8/20 Sahana Voleti <sahanasithmas...@gmail.com>:
> >>> > Konstantin Kolinko,
> >>> > U mentioned these steps in your mail:
> >>> > 1. Read documentation for AccessLogValve.
> >>> > 2. Use a text editor to edit server.xml file (for the global access
> >>> > log) or the META-INF/context.xml file of your web application (for
> >>> > your webapp's access log).
> >>> > 3. Restart Tomcat.
> >>> > 4. Read access log file and compare the value mentioned there with
> the
> >>> > size of your uploaded file.  The value of content-length header
> should
> >>> > be slightly more than the size of your file (because of delimiters
> >>> > being added). Alternatively a browser can use
> >>> > "content-encoding:chunked" header.
> >>> >
> >>> > Can you please send me an example of how I can make these changes.
> >>> >
> >>>
> >>> For which step of the above?
> >>>
> >>> Documentation for AccessLogValve is
> >>>   Tomcat 7 docs home -> Configuration reference -> Valve -> Access Log
> >>> Valve.
> >>>
> >>> And read the previous thread that I mentioned before (with a link to
> >>> archives).
> >>> The thread name is "Problems uploading huge files >2GB to Tomcat app."
> >>> I mentioned my configuration there.
> >>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to