quickjs-tart

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

test1078 (1677B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP/1.0
      6 HTTP GET
      7 HTTP CONNECT
      8 HTTP proxy
      9 proxytunnel
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <connect>
     17 HTTP/1.1 200 Mighty fine indeed
     18 Server: test tunnel 2000
     19 
     20 </connect>
     21 
     22 <data nocheck="yes">
     23 HTTP/1.0 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Server: test-server/fake
     26 Content-Type: text/html
     27 Funny-head: yesyes
     28 Content-Length: 9
     29 Connection: keep-alive
     30 
     31 contents
     32 </data>
     33 </reply>
     34 
     35 #
     36 # Client-side
     37 <client>
     38 <server>
     39 http
     40 http-proxy
     41 </server>
     42 <name>
     43 HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
     44 </name>
     45 <command>
     46 --proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER
     47 </command>
     48 <features>
     49 proxy
     50 </features>
     51 </client>
     52 
     53 #
     54 # Verify data after the test has been "shot"
     55 <verify>
     56 <proxy>
     57 CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
     58 Host: %HOSTIP:%HTTPPORT
     59 User-Agent: curl/%VERSION
     60 Proxy-Connection: Keep-Alive
     61 
     62 </proxy>
     63 <protocol>
     64 GET /we/want/that/page/%TESTNUMBER HTTP/1.1
     65 Host: %HOSTIP:%HTTPPORT
     66 User-Agent: curl/%VERSION
     67 Accept: */*
     68 
     69 GET /we/want/that/page/%TESTNUMBER HTTP/1.0
     70 Host: %HOSTIP:%HTTPPORT
     71 User-Agent: curl/%VERSION
     72 Accept: */*
     73 
     74 </protocol>
     75 <stdout>
     76 HTTP/1.1 200 Mighty fine indeed
     77 Server: test tunnel 2000
     78 
     79 HTTP/1.0 200 OK
     80 Date: Tue, 09 Nov 2010 14:49:00 GMT
     81 Server: test-server/fake
     82 Content-Type: text/html
     83 Funny-head: yesyes
     84 Content-Length: 9
     85 Connection: keep-alive
     86 
     87 contents
     88 HTTP/1.0 200 OK
     89 Date: Tue, 09 Nov 2010 14:49:00 GMT
     90 Server: test-server/fake
     91 Content-Type: text/html
     92 Funny-head: yesyes
     93 Content-Length: 9
     94 Connection: keep-alive
     95 
     96 contents
     97 </stdout>
     98 </verify>
     99 </testcase>