1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP CONNECT
7HTTP Basic auth
8proxytunnel
9</keywords>
10</info>
11#
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 OK
16Date: Thu, 09 Nov 2010 14:49:00 GMT
17Server: test-server/fake swsclose
18Content-Type: text/html
19Funny-head: yesyes
20Content-Length: 9
21
22contents
23</data>
24<datacheck>
25HTTP/1.1 200 Mighty fine indeed
26
27HTTP/1.1 200 OK
28Date: Thu, 09 Nov 2010 14:49:00 GMT
29Server: test-server/fake swsclose
30Content-Type: text/html
31Funny-head: yesyes
32Content-Length: 9
33
34contents
35</datacheck>
36</reply>
37
38#
39# Client-side
40<client>
41<server>
42http
43</server>
44 <name>
45HTTP over proxy-tunnel with site authentication
46 </name>
47 <command>
48http://%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>
59CONNECT %HOSTIP:%HTTPPORT HTTP/1.1
60User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
61Host: %HOSTIP:%HTTPPORT
62Proxy-Connection: Keep-Alive
63
64GET /we/want/that/page/83 HTTP/1.1
65Authorization: Basic aWFtOm15c2VsZg==
66User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
67Host: %HOSTIP:%HTTPPORT
68Accept: */*
69
70</protocol>
71</verify>
72</testcase>
73