updated test cases
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Nov 2000 09:44:39 +0000 (09:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Nov 2000 09:44:39 +0000 (09:44 +0000)
21 files changed:
tests/data/command5.txt [new file with mode: 0644]
tests/data/command6.txt [new file with mode: 0644]
tests/data/command7.txt [new file with mode: 0644]
tests/data/command8.txt [new file with mode: 0644]
tests/data/command9.txt [new file with mode: 0644]
tests/data/http5.txt [new file with mode: 0644]
tests/data/http6.txt [new file with mode: 0644]
tests/data/http7.txt [new file with mode: 0644]
tests/data/http8.txt [new file with mode: 0644]
tests/data/http9.txt [new file with mode: 0644]
tests/data/name4.txt
tests/data/name5.txt [new file with mode: 0644]
tests/data/name6.txt [new file with mode: 0644]
tests/data/name7.txt [new file with mode: 0644]
tests/data/name8.txt [new file with mode: 0644]
tests/data/name9.txt [new file with mode: 0644]
tests/data/reply5.txt [new file with mode: 0644]
tests/data/reply6.txt [new file with mode: 0644]
tests/data/reply7.txt [new file with mode: 0644]
tests/data/reply8.txt [new file with mode: 0644]
tests/data/reply9.txt [new file with mode: 0644]

diff --git a/tests/data/command5.txt b/tests/data/command5.txt
new file mode 100644 (file)
index 0000000..f0fb267
--- /dev/null
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/that/page/5 -x %HOSTIP:%HOSTPORT
diff --git a/tests/data/command6.txt b/tests/data/command6.txt
new file mode 100644 (file)
index 0000000..a0b9798
--- /dev/null
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/we/want/that/page/6 -b "name=contents;name2=content2"
+
diff --git a/tests/data/command7.txt b/tests/data/command7.txt
new file mode 100644 (file)
index 0000000..0f7f85e
--- /dev/null
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt
diff --git a/tests/data/command8.txt b/tests/data/command8.txt
new file mode 100644 (file)
index 0000000..b7437cf
--- /dev/null
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/8 -b log/heads7.txt
diff --git a/tests/data/command9.txt b/tests/data/command9.txt
new file mode 100644 (file)
index 0000000..b0846bb
--- /dev/null
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt
+
diff --git a/tests/data/http5.txt b/tests/data/http5.txt
new file mode 100644 (file)
index 0000000..7980930
--- /dev/null
@@ -0,0 +1,5 @@
+GET http://127.0.0.1:8999/we/want/that/page/5 HTTP/1.0\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/http6.txt b/tests/data/http6.txt
new file mode 100644 (file)
index 0000000..fee9d80
--- /dev/null
@@ -0,0 +1,6 @@
+GET /we/want/that/page/6 HTTP/1.0\r
+Cookie: name=contents;name2=content2\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/http7.txt b/tests/data/http7.txt
new file mode 100644 (file)
index 0000000..0c8f2f9
--- /dev/null
@@ -0,0 +1,5 @@
+GET /we/want/7 HTTP/1.0\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/http8.txt b/tests/data/http8.txt
new file mode 100644 (file)
index 0000000..efe5eac
--- /dev/null
@@ -0,0 +1,6 @@
+GET /we/want/8 HTTP/1.0\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Cookie: foobar=name; partmatch=present\r
+\r
diff --git a/tests/data/http9.txt b/tests/data/http9.txt
new file mode 100644 (file)
index 0000000..deffd74
--- /dev/null
@@ -0,0 +1,23 @@
+POST /we/want/9 HTTP/1.0\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Content-Length: 446\r
+Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W\r
+\r
+--curluczemxkcWWsxptLlAImrFQHwQ3W\r
+Content-Disposition: form-data; name="name"\r
+\r
+daniel\r
+--curluczemxkcWWsxptLlAImrFQHwQ3W\r
+Content-Disposition: form-data; name="tool"\r
+\r
+curl\r
+--curluczemxkcWWsxptLlAImrFQHwQ3W\r
+Content-Disposition: form-data; name="file"; filename="data/command9.txt"\r
+Content-Type: text/plain\r
+\r
+http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt
+
+\r
+--curluczemxkcWWsxptLlAImrFQHwQ3W--\r
index dcb5f5e..df748d3 100644 (file)
@@ -1 +1 @@
-Replaced HTTP headers
+Replaced internal and added custom HTTP headers
diff --git a/tests/data/name5.txt b/tests/data/name5.txt
new file mode 100644 (file)
index 0000000..de72604
--- /dev/null
@@ -0,0 +1 @@
+HTTP over proxy
diff --git a/tests/data/name6.txt b/tests/data/name6.txt
new file mode 100644 (file)
index 0000000..5cfcf87
--- /dev/null
@@ -0,0 +1 @@
+HTTP with simple cookie send
diff --git a/tests/data/name7.txt b/tests/data/name7.txt
new file mode 100644 (file)
index 0000000..8dd34de
--- /dev/null
@@ -0,0 +1 @@
+HTTP with cookie parser and header recording
diff --git a/tests/data/name8.txt b/tests/data/name8.txt
new file mode 100644 (file)
index 0000000..d3571f4
--- /dev/null
@@ -0,0 +1 @@
+HTTP with cookie parsing from header file, must follow test 7
diff --git a/tests/data/name9.txt b/tests/data/name9.txt
new file mode 100644 (file)
index 0000000..82d7b58
--- /dev/null
@@ -0,0 +1 @@
+HTTP RFC1867-type formposting
diff --git a/tests/data/reply5.txt b/tests/data/reply5.txt
new file mode 100644 (file)
index 0000000..57d8bf9
--- /dev/null
@@ -0,0 +1,7 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Content-Type: text/html
+Funny-head: yesyes
+
+
diff --git a/tests/data/reply6.txt b/tests/data/reply6.txt
new file mode 100644 (file)
index 0000000..57d8bf9
--- /dev/null
@@ -0,0 +1,7 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Content-Type: text/html
+Funny-head: yesyes
+
+
diff --git a/tests/data/reply7.txt b/tests/data/reply7.txt
new file mode 100644 (file)
index 0000000..9b0a2a9
--- /dev/null
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Content-Type: text/html
+Funny-head: yesyes
+Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
+Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
+Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
+
diff --git a/tests/data/reply8.txt b/tests/data/reply8.txt
new file mode 100644 (file)
index 0000000..177ca09
--- /dev/null
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+
+
diff --git a/tests/data/reply9.txt b/tests/data/reply9.txt
new file mode 100644 (file)
index 0000000..7cf888e
--- /dev/null
@@ -0,0 +1,5 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+blablabla