Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP CONNECT
      7 HTTP Basic auth
      8 HTTP proxy
      9 HTTP proxy Basic auth
     10 proxytunnel
     11 </keywords>
     12 </info>
     13 
     14 #
     15 # Server-side
     16 <reply>
     17 <connect>
     18 HTTP/1.1 200 OK
     19 Connected-fine: sure
     20 
     21 </connect>
     22 
     23 <data>
     24 HTTP/1.1 200 OK
     25 Date: Thu, 09 Nov 2010 14:49:00 GMT
     26 Server: test-server/fake
     27 Content-Type: text/html
     28 Content-Length: 9
     29 
     30 contents
     31 </data>
     32 <datacheck>
     33 HTTP/1.1 200 OK
     34 Connected-fine: sure
     35 
     36 HTTP/1.1 200 OK
     37 Date: Thu, 09 Nov 2010 14:49:00 GMT
     38 Server: test-server/fake
     39 Content-Type: text/html
     40 Content-Length: 9
     41 
     42 contents
     43 </datacheck>
     44 </reply>
     45 
     46 #
     47 # Client-side
     48 <client>
     49 <server>
     50 http
     51 http-proxy
     52 </server>
     53  <name>
     54 HTTP CONNECT with proxytunnel getting two URLs from the same host
     55  </name>
     56  <command>
     57 http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.275:%HTTPPORT/we/want/that/page/275
     58 </command>
     59 </client>
     60 
     61 #
     62 # Verify data after the test has been "shot"
     63 <verify>
     64 <strip>
     65 ^User-Agent:.*
     66 </strip>
     67 <proxy>
     68 CONNECT remotesite.com.275:%HTTPPORT HTTP/1.1
     69 Host: remotesite.com.275:%HTTPPORT
     70 Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
     71 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
     72 Proxy-Connection: Keep-Alive
     73 
     74 </proxy>
     75 <protocol>
     76 GET /we/want/that/page/275 HTTP/1.1
     77 Host: remotesite.com.275:%HTTPPORT
     78 Authorization: Basic aWFtOm15c2VsZg==
     79 Accept: */*
     80 
     81 GET /we/want/that/page/275 HTTP/1.1
     82 Host: remotesite.com.275:%HTTPPORT
     83 Authorization: Basic aWFtOm15c2VsZg==
     84 Accept: */*
     85 
     86 </protocol>
     87 </verify>
     88 </testcase>
     89