quickjs-tart

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

test1903 (1302B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 cookies
      6 CURLOPT_COOKIEFILE
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes" crlf="yes">
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Type: text/html
     17 Funny-head: yesyes swsclose
     18 Set-Cookie: foobar=name;
     19 Set-Cookie: secondcookie=present;
     20 
     21 </data>
     22 </reply>
     23 
     24 # Client-side
     25 <client>
     26 <server>
     27 http
     28 </server>
     29 <name>
     30 CURLOPT_COOKIEFILE then reset then set again
     31 </name>
     32 <tool>
     33 lib%TESTNUMBER
     34 </tool>
     35 <command>
     36 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER %LOGDIR/cookies%TESTNUMBER %LOGDIR/cookiesout%TESTNUMBER
     37 </command>
     38 <features>
     39 cookies
     40 </features>
     41 <file name="%LOGDIR/cookies%TESTNUMBER" mode="text">
     42 # Netscape HTTP Cookie File
     43 # https://curl.se/docs/http-cookies.html
     44 # This file was generated by libcurl! Edit at your own risk.
     45 
     46 %HOSTIP	FALSE	/we/want/	FALSE	0	secondcookie	present
     47 %HOSTIP	FALSE	/we/want/	FALSE	0	foobar	name
     48 </file>
     49 </client>
     50 
     51 # Verify data after the test has been "shot"
     52 <verify>
     53 <file name="%LOGDIR/cookiesout%TESTNUMBER" mode="text">
     54 # Netscape HTTP Cookie File
     55 # https://curl.se/docs/http-cookies.html
     56 # This file was generated by libcurl! Edit at your own risk.
     57 
     58 %HOSTIP	FALSE	/we/want/	FALSE	0	foobar	name
     59 %HOSTIP	FALSE	/we/want/	FALSE	0	secondcookie	present
     60 </file>
     61 </verify>
     62 </testcase>