quickjs-tart

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

test1562 (1189B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP
      6 HTTP GET
      7 cookies
      8 HTTP replaced headers
      9 </keywords>
     10 </info>
     11 
     12 # Server-side
     13 <reply>
     14 <data1>
     15 HTTP/1.1 200 OK
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Set-Cookie: foo=123; path=/; secure;
     19 Content-Length: 7
     20 
     21 nomnom
     22 </data1>
     23 <data2>
     24 HTTP/1.1 200 OK
     25 Date: Tue, 09 Nov 2010 14:49:00 GMT
     26 Server: test-server/fake
     27 Set-Cookie: foo=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/
     28 Content-Length: 7
     29 
     30 nomnom
     31 </data2>
     32 </reply>
     33 
     34 # Client-side
     35 <client>
     36 <features>
     37 SSL
     38 </features>
     39 <server>
     40 http
     41 https
     42 </server>
     43 <name>
     44 Expire secure cookies over HTTPS
     45 </name>
     46 <command>
     47 --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -H "Host: www.example.com" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0002 -b "non-existing" https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001
     48 </command>
     49 </client>
     50 <verify>
     51 <protocol>
     52 GET /%TESTNUMBER0001 HTTP/1.1
     53 Host: www.example.com
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 
     57 GET /%TESTNUMBER0002 HTTP/1.1
     58 Host: www.example.com
     59 User-Agent: curl/%VERSION
     60 Accept: */*
     61 Cookie: foo=123
     62 
     63 GET /%TESTNUMBER0001 HTTP/1.1
     64 Host: www.example.com
     65 User-Agent: curl/%VERSION
     66 Accept: */*
     67 
     68 </protocol>
     69 
     70 </verify>
     71 
     72 </testcase>