quickjs-tart

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

test1942 (1134B)


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