cURL / Mailing Lists / curl-library / Single Mail

curl-library

Stray CRLF in chunk-encoded content-free request bodies

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Mon, 26 Nov 2012 15:20:27 +0100

After implementing support for chunk-encoded request bodies
for Privoxy, the curl tests 565 and 1333 kept failing when
using Privoxy as proxy anyway.

The problem seems to be that curl doesn't properly chunk-encode
content-free request bodies and sends "CR LF 0 CR LF CR LF"
instead of "0 CR LF CR LF" ("last-chunk" + CR LF).

The tests work without Privoxy because they expect the stray
CR LF at the beginning of the body.

The attached patch fixes this.

Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-11-26