quickjs-tart

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

test179 (1035B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 cookies
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Server: Microsoft-IIS/4.0
     16 Date: Tue, 25 Sep 2001 19:37:44 GMT
     17 Content-Type: text/html
     18 Connection: close
     19 Content-Length: 21
     20 
     21 This server says moo
     22 </data>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <name>
     31 HTTP using proxy and cookies with path checks
     32 </name>
     33 <command>
     34 http://supertrooper.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT
     35 </command>
     36 <file name="%LOGDIR/injar%TESTNUMBER">
     37 supertrooper.fake	FALSE	/a	FALSE	22139150993	mooo	indeed
     38 supertrooper.fake	FALSE	/b	FALSE	0		moo1	indeed
     39 supertrooper.fake	FALSE	/c	FALSE	22139150993	moo2	indeed
     40 </file>
     41 <features>
     42 cookies
     43 proxy
     44 </features>
     45 </client>
     46 
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 <protocol>
     50 GET http://supertrooper.fake/c/%TESTNUMBER HTTP/1.1
     51 Host: supertrooper.fake
     52 User-Agent: curl/%VERSION
     53 Accept: */*
     54 Proxy-Connection: Keep-Alive
     55 Cookie: moo2=indeed
     56 
     57 </protocol>
     58 </verify>
     59 </testcase>