Now the test servers and test cases can run on a custom port number. There's
[platform/upstream/curl.git] / tests / data / test2
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 OK
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake swsclose
8 Content-Type: text/html
9 Funny-head: yesyes
10
11 </data>
12 </reply>
13
14 #
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20  <name>
21 HTTP GET with user and password
22  </name>
23  <command>
24  -u fake:user http://%HOSTIP:%HTTPPORT/2
25 </command>
26 </test>
27
28 #
29 # Verify data after the test has been "shot"
30 <verify>
31 <strip>
32 ^User-Agent:.*
33 </strip>
34 <protocol>
35 GET /2 HTTP/1.1\r
36 Authorization: Basic ZmFrZTp1c2Vy\r
37 Host: 127.0.0.1:%HTTPPORT\r
38 Pragma: no-cache\r
39 Accept: */*\r
40 \r
41 </protocol>
42 <data>
43 [insert full protocol verifiction dump here]
44 </data>
45 </verify>