http error response: stop sending when error is received
authorDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jul 2011 21:24:45 +0000 (23:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jul 2011 22:08:41 +0000 (00:08 +0200)
commit3f9b4afdfd7dd3ea16e07af98bb324b9f4277696
tree264a369b6475ea128c1d2949ab31d172abb34395
parentd007c3ca76cf0587a3222279ebda0f3a8727807f
http error response: stop sending when error is received

When libcurl has said to the server that there's a POST or PUT coming
(with a content-length and all) it has to either deliver that amount of
data or it needs to close the connection before trying a second request.

Adds test case 1129, 1130 and 1131

The bug report is about when used with 100-continue, but the change is
more generic.

Bug: http://curl.haxx.se/mail/lib-2011-06/0191.html
Reported by: Steven Parkes
lib/http.c
lib/transfer.c
tests/data/Makefile.am
tests/data/test1129 [new file with mode: 0644]
tests/data/test1130 [new file with mode: 0644]
tests/data/test1131 [new file with mode: 0644]