]> granicus.if.org Git - curl/commitdiff
Content-Length: now overrides other means of knowing when the stream has
authorDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jun 2003 07:53:18 +0000 (07:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Jun 2003 07:53:18 +0000 (07:53 +0000)
ended.

tests/data/test3

index e6bb28f22c9a7ae1d69640d65882c980020c7837..9c42b8328e13904d6fed4039c33099ce97b2a8e8 100644 (file)
@@ -9,6 +9,13 @@ Content-Length: 0
 \r
 this is data even though Content-Length is set to zero
 </data>
+<datacheck>
+HTTP/1.0 200 OK\r
+Server: test-server/fake\r
+Content-Type: text/html\r
+Content-Length: 0\r
+\r
+</datacheck>
 </reply>
 
 #
@@ -18,7 +25,7 @@ this is data even though Content-Length is set to zero
 http
 </server>
  <name>
-HTTP POST with user and password
+HTTP POST with auth and contents but with content-length set to 0
  </name>
  <command>
  -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HOSTPORT/3