Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test275
blobe07b1a83e884a8f270e7f8d41768ec319035ffe3
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP Basic auth
8 HTTP proxy Basic auth
9 </keywords>
10 </info>
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 200 OK
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Server: test-server/fake
18 Content-Type: text/html
19 Content-Length: 9
21 contents
22 </data>
23 <datacheck>
24 HTTP/1.1 200 Mighty fine indeed\r
26 HTTP/1.1 200 OK
27 Date: Thu, 09 Nov 2010 14:49:00 GMT
28 Server: test-server/fake
29 Content-Type: text/html
30 Content-Length: 9
32 contents
33 </datacheck>
34 </reply>
37 # Client-side
38 <client>
39 <server>
40 http
41 </server>
42  <name>
43 HTTP CONNECT with proxytunnel getting two URLs from the same host
44  </name>
45  <command>
46 http://remotesite.com/we/want/that/page/275 -p -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com/we/want/that/page/275
47 </command>
48 </client>
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <protocol>
57 CONNECT remotesite.com:80 HTTP/1.0\r
58 Host: remotesite.com:80\r
59 Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm\r
60 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3\r
61 Proxy-Connection: Keep-Alive\r
63 GET /we/want/that/page/275 HTTP/1.1\r
64 Authorization: Basic aWFtOm15c2VsZg==\r
65 Host: remotesite.com\r
66 Accept: */*\r
68 GET /we/want/that/page/275 HTTP/1.1\r
69 Authorization: Basic aWFtOm15c2VsZg==\r
70 Host: remotesite.com\r
71 Accept: */*\r
73 </protocol>
74 </verify>
75 </testcase>