quickjs-tart

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

test1940 (1059B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 curl_easy_header
      5 </keywords>
      6 </info>
      7 
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 200 OK
     12 Date: Thu, 09 Nov 2010 14:49:00 GMT
     13 Server:       test with trailing space     
     14 Content-Type: text/html
     15 Fold: is
     16  folding a     
     17    line
     18 Content-Length: 0
     19 Set-Cookie: onecookie=data;
     20 Set-Cookie: secondcookie=2data;
     21 Set-Cookie: cookie3=data3;
     22 Blank:
     23 Blank2:
     24 Location: /%TESTNUMBER0002
     25 
     26 </data>
     27 </reply>
     28 
     29 # Client-side
     30 <client>
     31 <features>
     32 headers-api
     33 </features>
     34 <server>
     35 http
     36 </server>
     37 
     38 <name>
     39 curl_easy_header
     40 </name>
     41 <tool>
     42 lib%TESTNUMBER
     43 </tool>
     44 
     45 <command>
     46 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     47 </command>
     48 </client>
     49 
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <stdout>
     53  Date == Thu, 09 Nov 2010 14:49:00 GMT
     54  Server == test with trailing space
     55  Content-Type == text/html
     56  Content-Length == 0
     57  Location == /%TESTNUMBER0002
     58 - Set-Cookie == onecookie=data; (0/3)
     59 - Set-Cookie == secondcookie=2data; (1/3)
     60 - Set-Cookie == cookie3=data3; (2/3)
     61  Fold == is folding a line
     62  Blank == 
     63  Blank2 == 
     64 </stdout>
     65 </verify>
     66 </testcase>