[erlang-questions] how: Chunked input encoding with {packet, http}
Christian S
chsu79@REDACTED
Thu Mar 27 19:45:09 CET 2008
Thanks Matthias. This will do!
On Thu, Mar 27, 2008 at 7:29 PM, Matthias Lang <matthias@REDACTED> wrote:
> Christian S writes:
> > Typically, one use the http packet to get the Content-Length and then
> > proceed to {packet, raw} and read that number of bytes.
> >
> > But how should one handle a request that comes in with an unknown
> > length such as a chunk encoded entity?
>
> From memory: you read a {packet, line} to get the chunk size, and
> then you can switch to {packet, raw}.
>
> You should read RFC 2068 section 3.6. It's not that bad.
More information about the erlang-questions
mailing list