Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 multi
      7 CURLOPT_OPENSOCKETFUNCTION
      8 CURLOPT_CLOSESOCKETFUNCTION
      9 </keywords>
     10 </info>
     11 
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 302 eat this!
     16 Date: Thu, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Location: this-is-the-first.html
     19 Content-Length: 0
     20 Connection: close
     21 
     22 </data>
     23 <datacheck>
     24 [OPEN] counter: 1
     25 HTTP/1.1 302 eat this!
     26 Date: Thu, 09 Nov 2010 14:49:00 GMT
     27 Server: test-server/fake
     28 Location: this-is-the-first.html
     29 Content-Length: 0
     30 Connection: close
     31 
     32 [CLOSE] counter: 1
     33 </datacheck>
     34 </reply>
     35 
     36 # Client-side
     37 <client>
     38 <server>
     39 http
     40 </server>
     41 <features>
     42 http
     43 </features>
     44 # tool is what to use instead of 'curl'
     45 <tool>
     46 lib585
     47 </tool>
     48 
     49  <name>
     50 socket open/close callbacks
     51  </name>
     52  <command>
     53 http://%HOSTIP:%HTTPPORT/585
     54 </command>
     55 </client>
     56 
     57 # Verify data after the test has been "shot"
     58 <verify>
     59 <strip>
     60 ^User-Agent:.*
     61 </strip>
     62 <protocol>
     63 GET /585 HTTP/1.1
     64 Host: %HOSTIP:%HTTPPORT
     65 Accept: */*
     66 
     67 </protocol>
     68 </verify>
     69 </testcase>
     70