quickjs-tart

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

test1421 (1177B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data nocheck="yes">
     14 HTTP/1.1 200 OK
     15 Unknown-header: blrub
     16 Content-Length: 6
     17 
     18 -foo-
     19 </data>
     20 
     21 <servercmd>
     22 connection-monitor
     23 </servercmd>
     24 </reply>
     25 
     26 #
     27 # Client-side
     28 <client>
     29 <server>
     30 http
     31 </server>
     32 <name>
     33 Re-using HTTP proxy connection for two different host names
     34 </name>
     35 <command>
     36 --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/ http://different.remote.haxx.se.%TESTNUMBER:8990
     37 </command>
     38 <features>
     39 proxy
     40 </features>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <stdout>
     47 HTTP/1.1 200 OK
     48 Unknown-header: blrub
     49 Content-Length: 6
     50 
     51 -foo-
     52 HTTP/1.1 200 OK
     53 Unknown-header: blrub
     54 Content-Length: 6
     55 
     56 -foo-
     57 </stdout>
     58 <protocol>
     59 GET http://test.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
     60 Host: test.remote.haxx.se.%TESTNUMBER:8990
     61 User-Agent: curl/%VERSION
     62 Accept: */*
     63 Proxy-Connection: Keep-Alive
     64 
     65 GET http://different.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
     66 Host: different.remote.haxx.se.%TESTNUMBER:8990
     67 User-Agent: curl/%VERSION
     68 Accept: */*
     69 Proxy-Connection: Keep-Alive
     70 
     71 [DISCONNECT]
     72 </protocol>
     73 </verify>
     74 </testcase>