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