Revert "Imported Upstream version 7.44.0"
[platform/upstream/curl.git] / tests / data / test275
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP Basic auth
8 HTTP proxy
9 HTTP proxy Basic auth
10 proxytunnel
11 </keywords>
12 </info>
13
14 #
15 # Server-side
16 <reply>
17 <connect>
18 HTTP/1.1 200 OK\r
19 Connected-fine: sure\r
20 \r
21 </connect>
22
23 <data>
24 HTTP/1.1 200 OK
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
26 Server: test-server/fake
27 Content-Type: text/html
28 Content-Length: 9
29
30 contents
31 </data>
32 <datacheck>
33 HTTP/1.1 200 OK\r
34 Connected-fine: sure\r
35 \r
36 HTTP/1.1 200 OK
37 Date: Thu, 09 Nov 2010 14:49:00 GMT
38 Server: test-server/fake
39 Content-Type: text/html
40 Content-Length: 9
41
42 contents
43 </datacheck>
44 </reply>
45
46 #
47 # Client-side
48 <client>
49 <server>
50 http
51 http-proxy
52 </server>
53  <name>
54 HTTP CONNECT with proxytunnel getting two URLs from the same host
55  </name>
56  <command>
57 http://remotesite.com.275:%HTTPPORT/we/want/that/page/275 -p -x %HOSTIP:%PROXYPORT --user iam:myself --proxy-user youare:yourself http://remotesite.com.275:%HTTPPORT/we/want/that/page/275
58 </command>
59 </client>
60
61 #
62 # Verify data after the test has been "shot"
63 <verify>
64 <strip>
65 ^User-Agent:.*
66 </strip>
67 <proxy>
68 CONNECT remotesite.com.275:%HTTPPORT HTTP/1.1\r
69 Host: remotesite.com.275:%HTTPPORT\r
70 Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm\r
71 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
72 Proxy-Connection: Keep-Alive\r
73 \r
74 </proxy>
75 <protocol>
76 GET /we/want/that/page/275 HTTP/1.1\r
77 Authorization: Basic aWFtOm15c2VsZg==\r
78 Host: remotesite.com.275:%HTTPPORT\r
79 Accept: */*\r
80 \r
81 GET /we/want/that/page/275 HTTP/1.1\r
82 Authorization: Basic aWFtOm15c2VsZg==\r
83 Host: remotesite.com.275:%HTTPPORT\r
84 Accept: */*\r
85 \r
86 </protocol>
87 </verify>
88 </testcase>