quickjs-tart

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

test483 (1351B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data crlf="yes">
     14 HTTP/1.1 200 OK
     15 Set-Cookie: name=value; expires=Fri Feb 13 11:56:27 GMT 2132
     16 Set-Cookie: name2=value; expires=Fri Feb 13 11:56:27 ; 2132
     17 Set-Cookie: name3=value; expires=Fri Feb 13 11:56:27 ...................................................GMT 2132
     18 Set-Cookie: name4=value; expires=Fri Feb 13 11:56:27 ....................................................GMT 2132
     19 Accept-Ranges: bytes
     20 Content-Length: 6
     21 Connection: close
     22 
     23 -foo-
     24 </data>
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <server>
     31 http
     32 </server>
     33 <features>
     34 cookies
     35 large-time
     36 </features>
     37 <name>
     38 HTTP cookies with long expire dates
     39 </name>
     40 <command>
     41 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/c%TESTNUMBER
     42 </command>
     43 </client>
     44 
     45 #
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <protocol crlf="yes">
     49 GET /%TESTNUMBER HTTP/1.1
     50 Host: %HOSTIP:%HTTPPORT
     51 User-Agent: curl/%VERSION
     52 Accept: */*
     53 
     54 </protocol>
     55 <file name="%LOGDIR/c%TESTNUMBER" mode="text">
     56 # Netscape HTTP Cookie File
     57 # https://curl.se/docs/http-cookies.html
     58 # This file was generated by libcurl! Edit at your own risk.
     59 
     60 127.0.0.1	FALSE	/	FALSE	0	name4	value
     61 127.0.0.1	FALSE	/	FALSE	%days[400]	name3	value
     62 127.0.0.1	FALSE	/	FALSE	0	name2	value
     63 127.0.0.1	FALSE	/	FALSE	%days[400]	name	value
     64 </file>
     65 </verify>
     66 </testcase>