HTTP HEAD tests
This commit is contained in:
@@ -63,4 +63,5 @@ command31.txt name32.txt reply31.txt reply32.txt \
|
|||||||
command32.txt prot31.txt reply310001.txt reply320001.txt \
|
command32.txt prot31.txt reply310001.txt reply320001.txt \
|
||||||
name31.txt prot32.txt reply310002.txt reply320002.txt \
|
name31.txt prot32.txt reply310002.txt reply320002.txt \
|
||||||
command33.txt extra33.txt name33.txt prot33.txt reply33.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
|
||||||
|
|||||||
1
tests/data/command35.txt
Normal file
1
tests/data/command35.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
http://%HOSTIP:%HOSTPORT/want/35 --include --head
|
||||||
@@ -1 +1 @@
|
|||||||
HTTP HEAD
|
HTTP HEAD with Connection: close
|
||||||
|
|||||||
1
tests/data/name35.txt
Normal file
1
tests/data/name35.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
HTTP HEAD without Connection: close
|
||||||
6
tests/data/prot35.txt
Normal file
6
tests/data/prot35.txt
Normal file
@@ -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, */*
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Server: thebest/1.0
|
Server: thebest/1.0
|
||||||
|
Connection: close
|
||||||
|
|
||||||
no?
|
no?
|
||||||
|
|||||||
4
tests/data/reply35.txt
Normal file
4
tests/data/reply35.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
HTTP/1.1 200 OK
|
||||||
|
Server: thebest/1.0
|
||||||
|
Silly-but-last-header: funny
|
||||||
|
|
||||||
Reference in New Issue
Block a user