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