xref: /curl/tests/data/test1428 (revision 3fd80c7b)
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: Tue, 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<connect>
25HTTP/1.1 200 Mighty fine indeed
26
27</connect>
28<datacheck>
29HTTP/1.1 200 Mighty fine indeed
30
31HTTP/1.1 200 OK
32Date: Tue, 09 Nov 2010 14:49:00 GMT
33Server: test-server/fake swsclose
34Content-Type: text/html
35Funny-head: yesyes
36Content-Length: 9
37
38contents
39</datacheck>
40</reply>
41
42#
43# Client-side
44<client>
45<server>
46http
47http-proxy
48</server>
49<name>
50HTTP over proxy-tunnel with --proxy-header and --header
51</name>
52<command>
53http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self' --header "header-type: server" --proxy-header "header-type: proxy"
54</command>
55<features>
56proxy
57</features>
58</client>
59
60#
61# Verify data after the test has been "shot"
62<verify>
63<proxy>
64CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.1
65Host: test.%TESTNUMBER:%HTTPPORT
66User-Agent: curl/%VERSION
67Proxy-Connection: Keep-Alive
68header-type: proxy
69
70</proxy>
71<protocol>
72GET /we/want/that/page/%TESTNUMBER HTTP/1.1
73Host: test.%TESTNUMBER:%HTTPPORT
74Authorization: Basic aWFtOm15OjtzZWxm
75User-Agent: curl/%VERSION
76Accept: */*
77header-type: server
78
79</protocol>
80</verify>
81</testcase>
82