]> granicus.if.org Git - curl/commitdiff
added test 79, a basic test that fetches an FTP URL over a HTTP proxy
authorDaniel Stenberg <daniel@haxx.se>
Mon, 11 Aug 2003 10:12:35 +0000 (10:12 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Aug 2003 10:12:35 +0000 (10:12 +0000)
tests/data/Makefile.am
tests/data/test46
tests/data/test79 [new file with mode: 0644]

index f2a8257b2d6ca351f3750bf593274bfb6ae33c87..34fe406fe803daa21c0658250d1ffabbbc4be0d5 100644 (file)
@@ -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
index 5ed2fc6a0d028fdef3c99e389a6b426378ae07ed..4ca89ae9b31ad2342523cb24e800a0e2c457b739 100644 (file)
@@ -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\r
 
@@ -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\r
 Pragma: no-cache\r
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
-Cookie: mooo=indeed\r
+Cookie: empty=; mooo=indeed\r
 \r
 </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 (file)
index 0000000..c068aae
--- /dev/null
@@ -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\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
+</protocol>
+</verify>