quickjs-tart

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

test1944 (1086B)


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