curl-users
Re: Handling of chunked encoding
Date: Sun, 5 Jan 2014 13:23:56 -0500
Thanks Daniel.
nc has the -C (--crlf) option which converts line feed to CRLF. Using -C
avoids this problem with curl.
On Sun, Jan 5, 2014 at 10:35 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sun, 5 Jan 2014, Shayan Pooya wrote:
>
> I have the following test web server:
>>
>
> b
>> Hello World
>> 0
>>
>
> Are these sizes and chunks all ended with CRLF ? Also, after the "0[CRLF]"
> size indicator, the final chunk should be a plain CRLF as well.
>
> Thus:
>
> --- start of stream ---
> b[CRLF]
> Hello World[CRLF]
> 0[CRLF]
> [CRLF]
> --- end of stream ---
>
> If others can read your broken chunked encoded content then that is
> because they are more liberal in what they accept.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-05