aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-01-27 20:02:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-01-27 20:02:11 +0000
commit2fa0d3dd5f6c1bd4e6a2c77ab731e9112d38e271 (patch)
treeee7a9d4a2a52a5581bf65d59fca3b9cef02953b7 /tests/data
parent3a8210c975fd829f00e43f87974d51e3d6b12410 (diff)
test case 31 and 32 were added
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/Makefile.am5
-rw-r--r--tests/data/command31.txt2
-rw-r--r--tests/data/command32.txt2
-rw-r--r--tests/data/name31.txt1
-rw-r--r--tests/data/name32.txt1
-rw-r--r--tests/data/prot31.txt9
-rw-r--r--tests/data/prot32.txt6
-rw-r--r--tests/data/reply31.txt6
-rw-r--r--tests/data/reply310001.txt9
-rw-r--r--tests/data/reply310002.txt5
-rw-r--r--tests/data/reply32.txt7
-rw-r--r--tests/data/reply320001.txt9
-rw-r--r--tests/data/reply320002.txt5
13 files changed, 66 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 280c7b1de..511540f28 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -58,4 +58,7 @@ command28.txt name28.txt prot28.txt reply28.txt \
command120.txt name120.txt prot120.txt reply120.txt \
command121.txt name121.txt prot121.txt reply121.txt \
command29.txt error30.txt name30.txt prot30.txt reply30.txt \
-command30.txt name29.txt prot29.txt reply29.txt
+command30.txt name29.txt prot29.txt reply29.txt \
+command31.txt name32.txt reply31.txt reply32.txt \
+command32.txt prot31.txt reply310001.txt reply320001.txt \
+name31.txt prot32.txt reply310002.txt reply320002.txt
diff --git a/tests/data/command31.txt b/tests/data/command31.txt
new file mode 100644
index 000000000..dbffab3eb
--- /dev/null
+++ b/tests/data/command31.txt
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/31 -d mooo=fooo -L
+
diff --git a/tests/data/command32.txt b/tests/data/command32.txt
new file mode 100644
index 000000000..d7fb1ae14
--- /dev/null
+++ b/tests/data/command32.txt
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/32 -d mooo=fooo -L
+
diff --git a/tests/data/name31.txt b/tests/data/name31.txt
new file mode 100644
index 000000000..7e3df9feb
--- /dev/null
+++ b/tests/data/name31.txt
@@ -0,0 +1 @@
+HTTP POST and follow Location: (error 301)
diff --git a/tests/data/name32.txt b/tests/data/name32.txt
new file mode 100644
index 000000000..ba04e8fff
--- /dev/null
+++ b/tests/data/name32.txt
@@ -0,0 +1 @@
+HTTP POST and follow Location: (error 303)
diff --git a/tests/data/prot31.txt b/tests/data/prot31.txt
new file mode 100644
index 000000000..4c87ac86a
--- /dev/null
+++ b/tests/data/prot31.txt
@@ -0,0 +1,9 @@
+POST /moo/moo/moo/310002 HTTP/1.0
+User-Agent: curl/7.6 (i686-pc-linux-gnu) libcurl 7.6 (SSL 0.9.5) (ipv6 enabled)
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+Content-Length: 9
+Content-Type: application/x-www-form-urlencoded
+
+mooo=fooo
diff --git a/tests/data/prot32.txt b/tests/data/prot32.txt
new file mode 100644
index 000000000..55e94ac40
--- /dev/null
+++ b/tests/data/prot32.txt
@@ -0,0 +1,6 @@
+GET /moo/moo/moo/320002 HTTP/1.0
+User-Agent: curl/7.6 (i686-pc-linux-gnu) libcurl 7.6 (SSL 0.9.5) (ipv6 enabled)
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+
diff --git a/tests/data/reply31.txt b/tests/data/reply31.txt
new file mode 100644
index 000000000..7794fd3ce
--- /dev/null
+++ b/tests/data/reply31.txt
@@ -0,0 +1,6 @@
+HTTP/1.1 301 Moved Permanently
+Server: fake
+Location: /moo/moo/moo/310002
+
+No contents
+
diff --git a/tests/data/reply310001.txt b/tests/data/reply310001.txt
new file mode 100644
index 000000000..ea3c76a7c
--- /dev/null
+++ b/tests/data/reply310001.txt
@@ -0,0 +1,9 @@
+HTTP/1.1 301 Moved Permanently
+Server: fake
+Location: /moo/moo/moo/310002
+
+HTTP/1.1 200 Followed here fine
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+If this is received, the location following worked
diff --git a/tests/data/reply310002.txt b/tests/data/reply310002.txt
new file mode 100644
index 000000000..280a45bfa
--- /dev/null
+++ b/tests/data/reply310002.txt
@@ -0,0 +1,5 @@
+HTTP/1.1 200 Followed here fine
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+If this is received, the location following worked
diff --git a/tests/data/reply32.txt b/tests/data/reply32.txt
new file mode 100644
index 000000000..8f8cf8522
--- /dev/null
+++ b/tests/data/reply32.txt
@@ -0,0 +1,7 @@
+HTTP/1.1 303 See Other
+Server: fake
+Location: /moo/moo/moo/320002
+
+This Location should be fetched with a GET!
+
+
diff --git a/tests/data/reply320001.txt b/tests/data/reply320001.txt
new file mode 100644
index 000000000..e444cfc17
--- /dev/null
+++ b/tests/data/reply320001.txt
@@ -0,0 +1,9 @@
+HTTP/1.1 303 See Other
+Server: fake
+Location: /moo/moo/moo/320002
+
+HTTP/1.1 200 Followed here fine
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+If this is received, the location following worked
diff --git a/tests/data/reply320002.txt b/tests/data/reply320002.txt
new file mode 100644
index 000000000..280a45bfa
--- /dev/null
+++ b/tests/data/reply320002.txt
@@ -0,0 +1,5 @@
+HTTP/1.1 200 Followed here fine
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+If this is received, the location following worked