quickjs-tart

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

test1941 (1270B)


      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 200 OK
     13 Date: Thu, 09 Nov 2010 14:49:00 GMT
     14 Server:       test with trailing space     
     15 Content-Type: text/html
     16 Content-Length: 0
     17 Set-Cookie: onecookie=data;
     18 Set-Cookie: secondcookie=2data;
     19 Set-Cookie: cookie3=data3;
     20 Location: /%TESTNUMBER0002
     21 
     22 </data>
     23 <connect>
     24 HTTP/1.1 200 Sure go ahead
     25 Server: from the connect
     26 Silly-thing: yes yes
     27 
     28 </connect>
     29 </reply>
     30 
     31 # Client-side
     32 <client>
     33 <features>
     34 proxy
     35 SSL
     36 headers-api
     37 </features>
     38 <server>
     39 http
     40 http-proxy
     41 </server>
     42 
     43 <name>
     44 curl_easy_header with CONNECT
     45 </name>
     46 <tool>
     47 lib1940
     48 </tool>
     49 
     50 <command>
     51 http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
     52 </command>
     53 </client>
     54 
     55 # Verify data after the test has been "shot"
     56 <verify>
     57 <proxy>
     58 CONNECT hello:%HTTPPORT HTTP/1.1
     59 Host: hello:%HTTPPORT
     60 Proxy-Connection: Keep-Alive
     61 
     62 </proxy>
     63 <stdout>
     64  Date == Thu, 09 Nov 2010 14:49:00 GMT
     65  Server == test with trailing space
     66  Content-Type == text/html
     67  Content-Length == 0
     68  Location == /%TESTNUMBER0002
     69 - Set-Cookie == onecookie=data; (0/3)
     70 - Set-Cookie == secondcookie=2data; (1/3)
     71 - Set-Cookie == cookie3=data3; (2/3)
     72  Server == from the connect
     73  Silly-thing == yes yes
     74 </stdout>
     75 </verify>
     76 </testcase>