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