Git init
[external/curl.git] / tests / data / test157
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 No Authorization Required swsclose\r
6 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
7 Content-Type: text/html; charset=iso-8859-1\r
8 Connection: close\r
9 \r
10 GET received and served just fine. Thank you very much
11 </data>
12 </reply>
13
14 # Client-side
15 <client>
16 <server>
17 http
18 </server>
19  <name>
20 HTTP GET with --anyauth (when the server requires none)
21  </name>
22  <command>
23 http://%HOSTIP:%HTTPPORT/157 -u testuser:testpass --anyauth
24 </command>
25 </client>
26
27 # Verify data after the test has been "shot"
28 <verify>
29 <strip>
30 ^User-Agent:.*
31 </strip>
32 <protocol>
33 GET /157 HTTP/1.1\r
34 Host: %HOSTIP:%HTTPPORT\r
35 Accept: */*\r
36 \r
37 </protocol>
38 </verify>
39 </testcase>