Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.0 404 BAD BOY
     12 Content-Type: text/html
     13 
     14 This silly page doesn't reaaaaaly exist so you should not get it.
     15 </data>
     16 </reply>
     17 
     18 # Client-side
     19 <client>
     20 <server>
     21 http
     22 </server>
     23  <name>
     24 HTTP GET fail silently on HTTP error return
     25  </name>
     26  <command>
     27 http://%HOSTIP:%HTTPPORT/24 --fail --silent --show-error
     28 </command>
     29 </client>
     30 
     31 # Verify data after the test has been "shot"
     32 <verify>
     33 <strip>
     34 ^User-Agent: curl/.*
     35 </strip>
     36 <protocol>
     37 GET /24 HTTP/1.1
     38 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
     39 Host: %HOSTIP:%HTTPPORT
     40 Accept: */*
     41 
     42 </protocol>
     43 <errorcode>
     44 22
     45 </errorcode>
     46 <file2 name="log/stderr24" mode="text">
     47 curl: (22) The requested URL returned error: 404 BAD BOY
     48 </file2>
     49 </verify>
     50 </testcase>
     51