[erlang-questions] how: Chunked input encoding with {packet, http}

Chandru chandrashekhar.mullaparthi@REDACTED
Thu Mar 27 20:13:04 CET 2008


On 27/03/2008, Christian S <chsu79@REDACTED> wrote:
>
> 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.
>


Apologies for being pedantic, but you should read RFC2616, section 3.6.1

RFC2068 is obsoleted by RFC2616.

:)
Chandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080327/ee65a1b1/attachment.htm>


More information about the erlang-questions mailing list