tizen 2.3.1 release
[external/curl.git] / tests / data / test151
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.0 401 BAD BOY
13 Server: swsclose
14 Content-Type: text/html
15
16 This contains a response code >= 400, so curl shouldn't display this.  Even
17 though it's a response code that triggers authentication, we're not using
18 authentication so we should still fail.
19 </data>
20 </reply>
21
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27  <name>
28 HTTP GET with an error code that might trick authentication
29  </name>
30  <command>
31 http://%HOSTIP:%HTTPPORT/151
32 </command>
33 </client>
34
35 # Verify data after the test has been "shot"
36 <verify>
37 <strip>
38 ^User-Agent: curl/.*
39 </strip>
40 <protocol>
41 GET /151 HTTP/1.1\r
42 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
43 Host: %HOSTIP:%HTTPPORT\r
44 Accept: */*\r
45 \r
46 </protocol>
47 </verify>
48 </testcase>