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