Debian Codegraph @

curl/tests/data/test151

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