Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 </keywords>
      6 </info>
      7 #
      8 # This reproduces issue #3340
      9 #
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 302 redirect to broken URL
     14 Date: Thu, 17 Mar 2016 14:41:00 GMT
     15 Server: test-server/fake
     16 Content-Type: text/plain; charset=US-ASCII
     17 X-Special: swsclose
     18 Location: http://1.2 .4.5/test
     19 Content-Length: 0
     20 Connection: close
     21 
     22 </data>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 # tool is what to use instead of 'curl'
     31 <tool>
     32 lib1518
     33 </tool>
     34 
     35  <name>
     36 Extract Location: with broken URL
     37  </name>
     38  <command>
     39 http://%HOSTIP:%HTTPPORT/1518
     40 </command>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <strippart>
     47 
     48 </strippart>
     49 <protocol>
     50 </protocol>
     51 <stdout>
     52 res: 0
     53 status: 302
     54 redirects: 0
     55 effectiveurl: http://%HOSTIP:%HTTPPORT/1518
     56 redirecturl: http://1.2 .4.5/test
     57 </stdout>
     58 <errorcode>
     59 0
     60 </errorcode>
     61 </verify>
     62 </testcase>
     63