]> granicus.if.org Git - curl/commitdiff
test case 27 added, to make sure cookie replacing don't leak anything
authorDaniel Stenberg <daniel@haxx.se>
Wed, 24 Oct 2001 11:39:48 +0000 (11:39 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 24 Oct 2001 11:39:48 +0000 (11:39 +0000)
tests/data/Makefile.am
tests/data/test27 [new file with mode: 0644]

index 9b2f87443a6494dcfe93bbc6d599dce4e442b8d2..418efbd8ef2f5087d5fcf081b90faef8673ba2c4 100644 (file)
@@ -13,4 +13,4 @@ test102  test11   test117  test124  test19   test23   test33   test8 \
 test103  test110  test118  test125  test2    test24   test4    test9 \
 test104  test111  test119  test13   test20   test25   test400  test47 \
 test105  test112  test12   test14   test200  test26   test43   test46 \
-test34 test36 test37
+test34 test36 test37 test27
diff --git a/tests/data/test27 b/tests/data/test27
new file mode 100644 (file)
index 0000000..b5851c2
--- /dev/null
@@ -0,0 +1,46 @@
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 Mooo
+Connection: close
+Set-Cookie: path=/; thewinneris=nowayyouwin;
+
+*flopp*
+</data>
+</reply>
+
+# Client-side
+<client>
+ <name>
+Get same cookie page several times
+ </name>
+ <command>
+'http://%HOSTIP:%HOSTPORT/want/{27,27,27}' -b none
+</command>
+</test>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent: curl.*
+</strip>
+<protocol>
+GET /want/27 HTTP/1.1\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
+GET /want/27 HTTP/1.1\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Cookie: thewinneris=nowayyouwin\r
+\r
+GET /want/27 HTTP/1.1\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Cookie: thewinneris=nowayyouwin\r
+\r
+</protocol>
+</verify>