aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1051
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-08-04 22:00:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-08-04 22:00:22 +0000
commit3a499099af52ddc69a3647767521c99c9e9c42e4 (patch)
tree7c67c35412c825d8c7e6011d0b0fa27e64ca057c /tests/data/test1051
parent931fc45f05e7370fd815c34884863f2b56920b5f (diff)
- Test cases 1051, 1052 and 1055 were added by Daniel Fandrich on July 30 and
proved how PUT and POST with a redirect could lead to a "hang" due to the data stream not being rewound properly when it had to in order to get sent properly (again) to the subsequent URL. This is now fixed and these test cases are no longer disabled.
Diffstat (limited to 'tests/data/test1051')
-rw-r--r--tests/data/test105119
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/data/test1051 b/tests/data/test1051
index 4aa31c1d6..080e1d1d5 100644
--- a/tests/data/test1051
+++ b/tests/data/test1051
@@ -29,12 +29,12 @@ Content-Length: 51
If this is received, the location following worked
</data2>
<datacheck>
-HTTP/1.1 301 Redirect
+HTTP/1.1 301 Redirect swsclose
Date: Thu, 29 Jul 2008 14:49:00 GMT
Server: test-server/fake
Location: data/10510002.txt?coolsite=yes
Content-Length: 0
-Connection: Keep-Alive
+Connection: close
HTTP/1.1 100 Continue
@@ -76,6 +76,12 @@ the
<strip>
^User-Agent:.*
</strip>
+
+# The primary reason libcurl sends the data part twice in this test is that
+# the test HTTP server is blocking until it has read the entire request,
+# including the full request-body before it responds. So in this test the
+# server says 301 and 100 _after_ the entire PUT body has been sent.
+
<protocol>
PUT /want/1051 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
@@ -83,6 +89,15 @@ Accept: */*
Content-Length: 78
Expect: 100-continue
+Weird
+ file
+ to
+ upload
+for
+ testing
+the
+ PUT
+ feature
PUT /want/data/10510002.txt?coolsite=yes HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*