Home | History | Annotate | Download | only in data
      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: Thu, 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.1078:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP.1078:%HTTPPORT/we/want/that/page/1078
     47 </command>
     48 </client>
     49 
     50 #
     51 # Verify data after the test has been "shot"
     52 <verify>
     53 <strip>
     54 ^User-Agent:.*
     55 </strip>
     56 <proxy>
     57 CONNECT %HOSTIP.1078:%HTTPPORT HTTP/1.0
     58 Host: %HOSTIP.1078:%HTTPPORT
     59 Proxy-Connection: Keep-Alive
     60 
     61 </proxy>
     62 <protocol>
     63 GET /we/want/that/page/1078 HTTP/1.1
     64 Host: %HOSTIP.1078:%HTTPPORT
     65 Accept: */*
     66 
     67 GET /we/want/that/page/1078 HTTP/1.0
     68 Host: %HOSTIP.1078:%HTTPPORT
     69 Accept: */*
     70 
     71 </protocol>
     72 <stdout>
     73 HTTP/1.1 200 Mighty fine indeed
     74 Server: test tunnel 2000
     75 
     76 HTTP/1.0 200 OK
     77 Date: Thu, 09 Nov 2010 14:49:00 GMT
     78 Server: test-server/fake
     79 Content-Type: text/html
     80 Funny-head: yesyes
     81 Content-Length: 9
     82 Connection: keep-alive
     83 
     84 contents
     85 HTTP/1.0 200 OK
     86 Date: Thu, 09 Nov 2010 14:49:00 GMT
     87 Server: test-server/fake
     88 Content-Type: text/html
     89 Funny-head: yesyes
     90 Content-Length: 9
     91 Connection: keep-alive
     92 
     93 contents
     94 </stdout>
     95 </verify>
     96 </testcase>
     97