Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.0 200 OK swsclose
     14 Content-Length: 0
     15 
     16 </data>
     17 </reply>
     18 
     19 # Client-side
     20 <client>
     21 <server>
     22 http
     23 </server>
     24 # tool is what to use instead of 'curl'
     25 <tool>
     26 lib1532
     27 </tool>
     28 <name>
     29 Test CURLINFO_RESPONSE_CODE
     30 </name>
     31 <command>
     32 http://%HOSTIP:%HTTPPORT/1532
     33 </command>
     34 </client>
     35 
     36 #
     37 # Verify data after the test has been "shot"
     38 <verify>
     39 <protocol>
     40 GET /1532 HTTP/1.1
     41 Host: %HOSTIP:%HTTPPORT
     42 Accept: */*
     43 
     44 </protocol>
     45 <errorcode>
     46 0
     47 </errorcode>
     48 </verify>
     49 </testcase>
     50