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<data>
18HTTP/1.1 200 OK
19Date: Thu, 09 Nov 2010 14:49:00 GMT
20Server: test-server/fake
21Content-Type: text/html
22Content-Length: 9
23
24contents
25</data>
26<datacheck>
27HTTP/1.1 200 Mighty fine indeed
28
29HTTP/1.1 200 OK
30Date: Thu, 09 Nov 2010 14:49:00 GMT
31Server: test-server/fake
32Content-Type: text/html
33Content-Length: 9
34
35contents
36</datacheck>
37</reply>
38
39#
40# Client-side
41<client>
42<server>
43http
44</server>
45 <name>
46HTTP CONNECT with proxytunnel getting two URLs from the same host
47 </name>
48 <command>
49http://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
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<strip>
57^User-Agent:.*
58</strip>
59<protocol>
60CONNECT remotesite.com:80 HTTP/1.1
61Host: remotesite.com:80
62Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
63User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
64Proxy-Connection: Keep-Alive
65
66GET /we/want/that/page/275 HTTP/1.1
67Authorization: Basic aWFtOm15c2VsZg==
68Host: remotesite.com
69Accept: */*
70
71GET /we/want/that/page/275 HTTP/1.1
72Authorization: Basic aWFtOm15c2VsZg==
73Host: remotesite.com
74Accept: */*
75
76</protocol>
77</verify>
78</testcase>
79