quickjs-tart

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

test1244 (885B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Server: test-server/fake
     15 Content-Length: 5
     16 
     17 bing
     18 </data>
     19 <data1>
     20 HTTP/1.1 200 OK
     21 Server: test-server/fake
     22 Content-Length: 6
     23 
     24 wrong
     25 </data1>
     26 </reply>
     27 
     28 #
     29 # Client-side
     30 <client>
     31 <server>
     32 http
     33 https
     34 </server>
     35 <features>
     36 proxy
     37 </features>
     38 <name>
     39 HTTP GET same URL - different proxy ports
     40 </name>
     41 <command>
     42 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -x %HOSTIP:%HTTPPORT --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER00001 -x %HOSTIP:%HTTPSPORT
     43 </command>
     44 </client>
     45 
     46 #
     47 # Verify data after the test has been "shot"
     48 <verify>
     49 # the second request meant to fail
     50 <errorcode>
     51 56
     52 </errorcode>
     53 <protocol>
     54 GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
     55 Host: %HOSTIP:%HTTPPORT
     56 User-Agent: curl/%VERSION
     57 Accept: */*
     58 Proxy-Connection: Keep-Alive
     59 
     60 </protocol>
     61 </verify>
     62 </testcase>