quickjs-tart

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

test1228 (998B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 cookies
      8 cookie path
      9 </keywords>
     10 </info>
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Date: Tue, 25 Sep 2001 19:37:44 GMT
     15 Set-Cookie: path1=root; domain=.example.fake; path=/;
     16 Set-Cookie: path2=depth1; domain=.example.fake; path=/hoge;
     17 Content-Length: 34
     18 
     19 This server says cookie path test
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 HTTP cookie path match
     30 </name>
     31 <command>
     32 http://example.fake/hoge/%TESTNUMBER http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
     33 </command>
     34 <features>
     35 cookies
     36 proxy
     37 </features>
     38 </client>
     39 
     40 # Verify data after the test has been "shot"
     41 <verify>
     42 <protocol>
     43 GET http://example.fake/hoge/%TESTNUMBER HTTP/1.1
     44 Host: example.fake
     45 User-Agent: curl/%VERSION
     46 Accept: */*
     47 Proxy-Connection: Keep-Alive
     48 
     49 GET http://example.fake/hogege/ HTTP/1.1
     50 Host: example.fake
     51 User-Agent: curl/%VERSION
     52 Accept: */*
     53 Proxy-Connection: Keep-Alive
     54 Cookie: path1=root
     55 
     56 </protocol>
     57 </verify>
     58 </testcase>