Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP CONNECT
      7 HTTP proxy
      8 proxytunnel
      9 CURLOPT_PROXYHEADER
     10 </keywords>
     11 </info>
     12 
     13 # Server-side
     14 <reply>
     15 <connect>
     16 HTTP/1.1 200 OK
     17 
     18 </connect>
     19 <data>
     20 HTTP/1.1 200 OK swsclose
     21 Date: Thu, 09 Nov 2010 14:49:00 GMT
     22 Server: test-server/fake
     23 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     24 ETag: "21025-dc7-39462498"
     25 </data>
     26 <datacheck>
     27 HTTP/1.1 200 OK
     28 
     29 HTTP/1.1 200 OK swsclose
     30 Date: Thu, 09 Nov 2010 14:49:00 GMT
     31 Server: test-server/fake
     32 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     33 ETag: "21025-dc7-39462498"
     34 </datacheck>
     35 
     36 </reply>
     37 # Client-side
     38 <client>
     39 <server>
     40 http
     41 http-proxy
     42 </server>
     43 <tool>
     44 lib1525
     45 </tool>
     46  <name>
     47 CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
     48  </name>
     49  <command>
     50  http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT
     51 </command>
     52 </client>
     53 
     54 # Verify data after the test has been "shot"
     55 <verify>
     56 <proxy>
     57 CONNECT the.old.moo.1525:%HTTPPORT HTTP/1.1
     58 Host: the.old.moo.1525:%HTTPPORT
     59 Proxy-Connection: Keep-Alive
     60 User-Agent: Http Agent
     61 
     62 </proxy>
     63 <protocol>
     64 PUT /1525 HTTP/1.1
     65 Host: the.old.moo.1525:%HTTPPORT
     66 Accept: */*
     67 User-Agent: Http Agent
     68 Content-Length: 13
     69 Expect: 100-continue
     70 
     71 Hello Cloud!
     72 </protocol>
     73 </verify>
     74 </testcase>
     75