>>>>> On 07 Dec 2005 10:17:36 -0800, Gisle Aas <[EMAIL PROTECTED]> said:

  > [EMAIL PROTECTED] (Andreas J. Koenig) writes:
 >> Does anybody have (or can point me to) a working example of
 >> HTTP::Daemon that implements a server that is capable to handle
 >> "Transfer-Encoding: chunked"? (I mean really capable, which means it
 >> should work without a Content-Length header and for inputs that tickle
 >> in in small chunks.)

  > The $c->get_request method should handle "Transfer-Encoding: chunked"
  > just fine, but it will not return until all the content data has been
  > received.  If you want to process chunked data as it is received, then
  > you will have to tell it to only read past the headers with
  > $c->get_request(1) and then do the parsing of the chunked body
  > yourself.

Thanks for coming back to my question. In the meantime I have verified
that $c->get_request() does it right. I append a testscript for that;
hope you like it.

What I had problems to get to work was the $c->get_request(1) + "do
the parsing yourself" variant. It would be a great help if there were
a sample implementation (maybe it would fit into my testscript?) that
is more or less bullet proof.

-- 
andreas

Reply via email to