quickjs-tart

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

test1946 (1198B)


      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 but get headers from first request
     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, 01 Nov 2001 14:49:00 GMT
     59  Server == test with trailing space
     60  Content-Type == text/html
     61  Content-Length == 0
     62  Location == /19460002
     63 - Set-Cookie == onecookie=data; (0/3)
     64 - Set-Cookie == secondcookie=2data; (1/3)
     65 - Set-Cookie == cookie3=data3; (2/3)
     66 </stdout>
     67 </verify>
     68 </testcase>