quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test329 (1632B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Content-Type: text/html
     16 Funny-head: yesyes
     17 Set-Cookie: testn1=yes; path=/we/want/; domain=.host.foo.com; Max-Age=-1;
     18 Set-Cookie: test=yes; path=/we/want/; domain=.host.foo.com; Max-Age=0;
     19 Content-Length: 4
     20 
     21 boo
     22 </data>
     23 <data2>
     24 HTTP/1.1 200 OK
     25 Funny-head: yesyes
     26 Content-Length: 4
     27 
     28 moo
     29 </data2>
     30 </reply>
     31 
     32 # Client-side
     33 <client>
     34 <file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
     35 .host.foo.com	TRUE	/we/want/	FALSE	22147483647	test	no
     36 </file>
     37 <file name="%LOGDIR/jar%TESTNUMBER-2.txt" mode="text">
     38 .host.foo.com	TRUE	/we/want/	FALSE	22147483647	tester	yes
     39 </file>
     40 <server>
     41 http
     42 </server>
     43 <name>
     44 HTTP cookie with Max-Age=0
     45 </name>
     46 # Explicitly set the time zone to a known good one, in case the user is
     47 # using one of the 'right' zones that take into account leap seconds
     48 # which causes the cookie expiry times to be different.
     49 <setenv>
     50 TZ=GMT
     51 </setenv>
     52 <command>
     53 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b %LOGDIR/jar%TESTNUMBER.txt -b %LOGDIR/jar%TESTNUMBER-2.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER0002
     54 </command>
     55 <features>
     56 cookies
     57 </features>
     58 </client>
     59 
     60 # Verify data after the test has been "shot"
     61 <verify>
     62 <protocol>
     63 GET /we/want/%TESTNUMBER HTTP/1.1
     64 Host: host.foo.com
     65 User-Agent: curl/%VERSION
     66 Accept: */*
     67 Cookie: tester=yes; test=no
     68 
     69 GET /we/want/%TESTNUMBER0002 HTTP/1.1
     70 Host: host.foo.com
     71 User-Agent: curl/%VERSION
     72 Accept: */*
     73 Cookie: tester=yes
     74 
     75 </protocol>
     76 </verify>
     77 </testcase>