From a2b2d4cd5c99741eeb9781aadfd92a5c4994da2e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 11 Aug 2003 10:12:35 +0000 Subject: added test 79, a basic test that fetches an FTP URL over a HTTP proxy --- tests/data/Makefile.am | 2 +- tests/data/test46 | 6 +++++- tests/data/test79 | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 tests/data/test79 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 @@ -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 @@ -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 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 + + +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 + + + +# +# Client-side + + +http + + +FTP over HTTP proxy + + +ftp://%HOSTIP:%HOSTPORT/we/want/that/page/79 -x %HOSTIP:%HOSTPORT + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +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, */* + + + -- cgit v1.2.3