1 Reply Latest reply on Mar 24, 2006 9:24 AM by Alexander Sack

    How do you handle chunked HttpServletRequests?

    Alexander Sack Novice

      I have a mobile client that is chunking its request to my servlet. Is there an API that I can use to get access to each chunk easily or do I really have to parse it manually as a ServletInputStream?

      Right now Tomcat seems to aggregate the chunks under one Body with each section separated by a boundary string. Is this always the case?

      Any guidance would be most appreciated.

        • 1. Re: How do you handle chunked HttpServletRequests?
          Alexander Sack Novice

          A follow, I'm using 4.0.4RC1 behind a Apache 2.055. When a mobile client sends a chunked POST, everytime I try to read it via HttpServletRequest.getReader() or getInputStream(), it just hangs! It looks from a tcpdump/network monitoring tool that all the chunks have not been received by JBoss/Tomcat from Apache by the time I call the above. This causes the connection to be dropped and a hang.

          Anybody see anything like this?