cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Handling of chunked encoding

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 5 Jan 2014 16:35:12 +0100 (CET)

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
Received on 2014-01-05