]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added test 46, cookie jar functionality
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Sep 2001 07:06:00 +0000 (07:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Sep 2001 07:06:00 +0000 (07:06 +0000)
tests/data/Makefile.am
tests/data/test46 [new file with mode: 0644]

index 7afb6bdd698fce86ed4ab980abaa3bfb2ee919dc..57acd5cbce0db6d2a50a8aaebe1a058da7fe79c5 100644 (file)
@@ -12,4 +12,4 @@ test101  test109  test116  test123  test18   test22   test302  test7 \
 test102  test11   test117  test124  test19   test23   test33   test8 \
 test103  test110  test118  test125  test2    test24   test4    test9 \
 test104  test111  test119  test13   test20   test25   test400  \
-test105  test112  test12   test14   test200  test26   test43   
\ No newline at end of file
+test105  test112  test12   test14   test200  test26   test43   test46
diff --git a/tests/data/test46 b/tests/data/test46
new file mode 100644 (file)
index 0000000..c975e2d
--- /dev/null
@@ -0,0 +1,62 @@
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 OK
+Server: Microsoft-IIS/4.0
+Date: Tue, 25 Sep 2001 19:37:44 GMT
+Content-Type: text/html
+Set-Cookie: ckyPersistent=permanent; expires=Tue, 01-Jan-2002 05:00:00 GMT; path=/
+Set-Cookie: ckySession=temporary; path=/
+Set-Cookie: ASPSESSIONIDQGGQQSJJ=GKNBDIFAAOFDPDAIEAKDIBKE; path=/
+Cache-control: private
+
+This server reply is for testing a simple Location: following
+
+</data>
+</reply>
+
+# Client-side
+<client>
+ <name>
+HTTP, get cookies and store in cookie jar
+ </name>
+ <command>
+%HOSTIP:%HOSTPORT/want/46 -c log/jar46 -b log/injar46
+</command>
+<file name="log/injar46">
+# Netscape HTTP Cookie File
+# http://www.netscape.com/newsref/std/cookie_spec.html
+# This is generated by libcurl!  Do not edit.
+
+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
+</file>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /want/46 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: mooo=indeed\r
+\r
+</protocol>
+<file name="log/jar46">
+# Netscape HTTP Cookie File
+# http://www.netscape.com/newsref/std/cookie_spec.html
+# This is generated by libcurl! Edit on your own risk.
+
+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   1009861200      ckyPersistent   permanent
+127.0.0.1      FALSE   /       FALSE   0       ckySession      temporary
+127.0.0.1      FALSE   /       FALSE   0       ASPSESSIONIDQGGQQSJJ    GKNBDIFAAOFDPDAIEAKDIBKE
+</file>
+</verify>