aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-09-05 17:58:53 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-09-05 17:58:53 +0000
commit91ff93803512e3438ce165b23bb5b9fb404df288 (patch)
tree0fbc0009c6237d62fa4a4033ad69038a639522c3 /tests
parent3acd1146f992a2b8c5da22a425c1380673c5bdef (diff)
Improved the logic the decides whether to use HTTP 1.1 features or not in a
request. Detect cases where an upload must be sent chunked and the server supports only HTTP 1.0 and return CURLE_UPLOAD_FAILED.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/DISABLED5
-rw-r--r--tests/data/test105312
-rw-r--r--tests/data/test10698
-rw-r--r--tests/data/test10724
-rw-r--r--tests/data/test10731
5 files changed, 11 insertions, 19 deletions
diff --git a/tests/data/DISABLED b/tests/data/DISABLED
index dc68bd90f..2055e9f16 100644
--- a/tests/data/DISABLED
+++ b/tests/data/DISABLED
@@ -3,8 +3,3 @@
# test cases are run by runtests.pl. Just add the plain test case numbers, one
# per line.
# Lines starting with '#' letters are treated as comments.
-1069
-1071
-1072
-1073
-1074
diff --git a/tests/data/test1053 b/tests/data/test1053
index dbc63e808..8c60e5ce3 100644
--- a/tests/data/test1053
+++ b/tests/data/test1053
@@ -12,7 +12,7 @@ followlocation
# Server-side
<reply>
<data>
-HTTP/1.0 307 Redirect swsclose
+HTTP/1.1 307 Redirect swsclose
Date: Thu, 29 Jul 2008 14:49:00 GMT
Server: test-server/fake
Location: data/10530002.txt?coolsite=yes
@@ -21,24 +21,28 @@ Connection: close
</data>
<data2>
-HTTP/1.0 200 OK swsclose
+HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
+Content-Length: 11
+Connection: close
blablabla
</data2>
<datacheck>
-HTTP/1.0 307 Redirect swsclose
+HTTP/1.1 307 Redirect swsclose
Date: Thu, 29 Jul 2008 14:49:00 GMT
Server: test-server/fake
Location: data/10530002.txt?coolsite=yes
Content-Length: 0
Connection: close
-HTTP/1.0 200 OK swsclose
+HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
+Content-Length: 11
+Connection: close
blablabla
diff --git a/tests/data/test1069 b/tests/data/test1069
index 5b0b1fa47..c47c357d7 100644
--- a/tests/data/test1069
+++ b/tests/data/test1069
@@ -9,14 +9,6 @@ HTTP/1.0
# Server-side
<reply>
-<data>
-HTTP/1.0 500 Impossible swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-
-blablabla
-
-</data>
</reply>
# Client-side
diff --git a/tests/data/test1072 b/tests/data/test1072
index 9a04224f4..14b6d804c 100644
--- a/tests/data/test1072
+++ b/tests/data/test1072
@@ -22,10 +22,9 @@ WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
Content-Type: text/plain
-Content-Length: 35
+Content-Length: 0
Connection: close
-Try again on this HTTP 1.0 server!
</data>
</reply>
@@ -71,6 +70,7 @@ This is data we upload with PUT
it comes from stdin so MUST be sent
with chunked encoding
which is impossible in HTTP/1.0
+
0
</protocol>
diff --git a/tests/data/test1073 b/tests/data/test1073
index 00e7feb0c..0f4fa0fe8 100644
--- a/tests/data/test1073
+++ b/tests/data/test1073
@@ -64,6 +64,7 @@ This is data we upload with PUT
it comes from stdin so MUST be sent
with chunked encoding
which is impossible in HTTP/1.0
+
0
</protocol>