Git init
[external/curl.git] / tests / data / test24
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
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\r
38 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
39 Host: %HOSTIP:%HTTPPORT\r
40 Accept: */*\r
41 \r
42 </protocol>
43 <errorcode>
44 22
45 </errorcode>
46 </verify>
47 </testcase>