diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.am | 2 | ||||
-rw-r--r-- | tests/data/test46 | 6 | ||||
-rw-r--r-- | tests/data/test79 | 42 |
3 files changed, 48 insertions, 2 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index f2a8257b2..34fe406fe 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -22,4 +22,4 @@ test500 test501 test502 test503 test504 test136 test57 test137 test138 \ test58 test139 test140 test141 test59 test60 test61 test142 test143 \ test62 test63 test64 test65 test66 test144 test145 test67 test68 test41 \ test40 test42 test69 test70 test71 test72 test73 test146 test505 \ -test74 test75 test76 test77 test78 test147 test148 test506 +test74 test75 test76 test77 test78 test147 test148 test506 test79 diff --git a/tests/data/test46 b/tests/data/test46 index 5ed2fc6a0..4ca89ae9b 100644 --- a/tests/data/test46 +++ b/tests/data/test46 @@ -8,6 +8,7 @@ Content-Type: text/html Set-Cookie: ckyPersistent=permanent; expires=Tue, 01-Jan-2010 05:00:00 GMT; path=/ Set-Cookie: ckySession=temporary; path=/ Set-Cookie: ASPSESSIONIDQGGQQSJJ=GKNBDIFAAOFDPDAIEAKDIBKE; path=/ +Set-Cookie: justaname=; path=/; Cache-control: private Content-Length: 62
@@ -34,6 +35,7 @@ HTTP, get cookies and store in cookie jar www.fake.come FALSE / FALSE 1022144953 cookiecliente si www.loser.com FALSE / FALSE 1139150993 UID 99 127.0.0.1 FALSE / FALSE 1139150993 mooo indeed +127.0.0.1 FALSE / FALSE 0 empty </file> </client> @@ -47,7 +49,7 @@ GET /want/46 HTTP/1.1 Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
-Cookie: mooo=indeed
+Cookie: empty=; mooo=indeed
</protocol> <file name="log/jar46"> @@ -58,8 +60,10 @@ Cookie: mooo=indeed www.fake.come FALSE / FALSE 1022144953 cookiecliente si www.loser.com FALSE / FALSE 1139150993 UID 99 127.0.0.1 FALSE / FALSE 1139150993 mooo indeed +127.0.0.1 FALSE / FALSE 0 empty 127.0.0.1 FALSE / FALSE 1262322000 ckyPersistent permanent 127.0.0.1 FALSE / FALSE 0 ckySession temporary 127.0.0.1 FALSE / FALSE 0 ASPSESSIONIDQGGQQSJJ GKNBDIFAAOFDPDAIEAKDIBKE +127.0.0.1 FALSE / FALSE 0 justaname </file> </verify> diff --git a/tests/data/test79 b/tests/data/test79 new file mode 100644 index 000000000..c068aaec3 --- /dev/null +++ b/tests/data/test79 @@ -0,0 +1,42 @@ +# +# Server-side +<reply> +<data> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake swsclose +Content-Type: text/html +Funny-head: yesyes + +contents +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> + <name> +FTP over HTTP proxy + </name> + <command> +ftp://%HOSTIP:%HOSTPORT/we/want/that/page/79 -x %HOSTIP:%HOSTPORT +</command> +</test> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET ftp://127.0.0.1:8999/we/want/that/page/79 HTTP/1.1
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+
+</protocol> +</verify> |