Git init
[external/curl.git] / tests / data / test80
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 <data>
18 HTTP/1.1 200 OK
19 Date: Thu, 09 Nov 2010 14:49:00 GMT
20 Server: test-server/fake swsclose
21 Content-Type: text/html
22 Funny-head: yesyes
23 Content-Length: 9
24
25 contents
26 </data>
27 <datacheck>
28 HTTP/1.1 200 Mighty fine indeed\r
29 \r
30 HTTP/1.1 200 OK
31 Date: Thu, 09 Nov 2010 14:49:00 GMT
32 Server: test-server/fake swsclose
33 Content-Type: text/html
34 Funny-head: yesyes
35 Content-Length: 9
36
37 contents
38 </datacheck>
39 </reply>
40
41 #
42 # Client-side
43 <client>
44 <server>
45 http
46 </server>
47  <name>
48 HTTP 1.0 CONNECT with proxytunnel and host Basic authentication
49  </name>
50  <command>
51 http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p --proxy1.0 %HOSTIP:%HTTPPORT --user iam:myself --proxy-user youare:yourself
52 </command>
53 </client>
54
55 #
56 # Verify data after the test has been "shot"
57 <verify>
58 <strip>
59 ^User-Agent:.*
60 </strip>
61 <protocol>
62 CONNECT %HOSTIP:%HTTPPORT HTTP/1.0\r
63 Host: %HOSTIP:%HTTPPORT\r
64 Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm\r
65 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
66 Proxy-Connection: Keep-Alive\r
67 \r
68 GET /we/want/that/page/80 HTTP/1.1\r
69 Authorization: Basic aWFtOm15c2VsZg==\r
70 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
71 Host: %HOSTIP:%HTTPPORT\r
72 Accept: */*\r
73 \r
74 </protocol>
75 </verify>
76 </testcase>