• 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<strip>
34^User-Agent: curl/.*
35</strip>
36<protocol>
37GET /24 HTTP/1.1
38User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
39Host: %HOSTIP:%HTTPPORT
40Accept: */*
41
42</protocol>
43<errorcode>
4422
45</errorcode>
46<file2 name="log/stderr24" mode="text">
47curl: (22) The requested URL returned error: 404 BAD BOY
48</file2>
49</verify>
50</testcase>
51