aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-08 10:39:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-08 10:39:36 +0000
commit2a11bdc2164abdc2300614bf50fa6130c2a92f6a (patch)
tree38d9f26e14847aedf862a777aa2309d97d6a7a47 /tests
parent5cd4c3ed2463588010a83c7808053fa3de5ee6a2 (diff)
HTTP HEAD tests
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.am3
-rw-r--r--tests/data/command35.txt1
-rw-r--r--tests/data/name14.txt2
-rw-r--r--tests/data/name35.txt1
-rw-r--r--tests/data/prot35.txt6
-rw-r--r--tests/data/reply14.txt1
-rw-r--r--tests/data/reply35.txt4
7 files changed, 16 insertions, 2 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 3a655a0ef..a76d09b5c 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -63,4 +63,5 @@ command31.txt name32.txt reply31.txt reply32.txt \
command32.txt prot31.txt reply310001.txt reply320001.txt \
name31.txt prot32.txt reply310002.txt reply320002.txt \
command33.txt extra33.txt name33.txt prot33.txt reply33.txt \
-command34.txt prot34.txt reply340001.txt name34.txt reply34.txt
+command34.txt prot34.txt reply340001.txt name34.txt reply34.txt \
+command35.txt name35.txt prot35.txt reply35.txt
diff --git a/tests/data/command35.txt b/tests/data/command35.txt
new file mode 100644
index 000000000..5fd2c4ada
--- /dev/null
+++ b/tests/data/command35.txt
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/want/35 --include --head
diff --git a/tests/data/name14.txt b/tests/data/name14.txt
index 6d7efd553..12bbf972d 100644
--- a/tests/data/name14.txt
+++ b/tests/data/name14.txt
@@ -1 +1 @@
-HTTP HEAD
+HTTP HEAD with Connection: close
diff --git a/tests/data/name35.txt b/tests/data/name35.txt
new file mode 100644
index 000000000..d6c399325
--- /dev/null
+++ b/tests/data/name35.txt
@@ -0,0 +1 @@
+HTTP HEAD without Connection: close
diff --git a/tests/data/prot35.txt b/tests/data/prot35.txt
new file mode 100644
index 000000000..5a6f32ccb
--- /dev/null
+++ b/tests/data/prot35.txt
@@ -0,0 +1,6 @@
+HEAD /want/35 HTTP/1.1
+User-Agent: curl/7.7-alpha2 (sparc-sun-solaris2.7) libcurl 7.7-alpha2 (SSL 0.9.6) (krb4 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/reply14.txt b/tests/data/reply14.txt
index a80fc6939..53558c660 100644
--- a/tests/data/reply14.txt
+++ b/tests/data/reply14.txt
@@ -1,4 +1,5 @@
HTTP/1.1 200 OK
Server: thebest/1.0
+Connection: close
no?
diff --git a/tests/data/reply35.txt b/tests/data/reply35.txt
new file mode 100644
index 000000000..0aff134b0
--- /dev/null
+++ b/tests/data/reply35.txt
@@ -0,0 +1,4 @@
+HTTP/1.1 200 OK
+Server: thebest/1.0
+Silly-but-last-header: funny
+