1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP CONNECT
7HTTP Basic auth
8HTTP proxy
9HTTP proxy Basic auth
10proxytunnel
11</keywords>
12</info>
13
14#
15# Server-side
16<reply>
17<connect>
18HTTP/1.1 200 OK
19Connected-fine: sure
20
21</connect>
22
23<data>
24HTTP/1.1 200 OK
25Date: Thu, 09 Nov 2010 14:49:00 GMT
26Server: test-server/fake
27Content-Type: text/html
28Content-Length: 9
29
30contents
31</data>
32<datacheck>
33HTTP/1.1 200 OK
34Connected-fine: sure
35
36HTTP/1.1 200 OK
37Date: Thu, 09 Nov 2010 14:49:00 GMT
38Server: test-server/fake
39Content-Type: text/html
40Content-Length: 9
41
42contents
43</datacheck>
44</reply>
45
46#
47# Client-side
48<client>
49<server>
50http
51http-proxy
52</server>
53 <name>
54HTTP CONNECT with proxytunnel getting two URLs from the same host
55 </name>
56 <command>
57http://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>
68CONNECT remotesite.com.275:%HTTPPORT HTTP/1.1
69Host: remotesite.com.275:%HTTPPORT
70Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
71User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
72Proxy-Connection: Keep-Alive
73
74</proxy>
75<protocol>
76GET /we/want/that/page/275 HTTP/1.1
77Authorization: Basic aWFtOm15c2VsZg==
78Host: remotesite.com.275:%HTTPPORT
79Accept: */*
80
81GET /we/want/that/page/275 HTTP/1.1
82Authorization: Basic aWFtOm15c2VsZg==
83Host: remotesite.com.275:%HTTPPORT
84Accept: */*
85
86</protocol>
87</verify>
88</testcase>
89