xref: /curl/tests/data/test3028 (revision f65f445f)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP CONNECT
6</keywords>
7</info>
8#
9# Server-side
10<reply>
11<connect>
12HTTP/1.1 200 Mighty fine indeed
13
14</connect>
15
16<data nocheck="yes">
17HTTP/1.1 404 Not Found
18Server: nginx/1.23.2
19Date: Wed, 09 Nov 2022 09:44:58 GMT
20Content-Type: text/plain; charset=utf-8
21Content-Length: 4
22Connection: keep-alive
23X-Content-Type-Options: nosniff
24
25haha
26</data>
27
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35http-proxy
36</server>
37<name>
38HTTP GET when PROXY Protocol enabled behind a proxy
39</name>
40<command>
41--haproxy-protocol http://%HOSTIP:%HTTPPORT/page --proxytunnel -x %HOSTIP:%PROXYPORT
42</command>
43<features>
44proxy
45</features>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<strippart>
52s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %PROXYPORT/proxy-line/
53</strippart>
54
55<proxy>
56CONNECT %HOSTIP:%HTTPPORT HTTP/1.1
57Host: %HOSTIP:%HTTPPORT
58User-Agent: curl/%VERSION
59Proxy-Connection: Keep-Alive
60
61</proxy>
62
63<protocol>
64proxy-line
65GET /page HTTP/1.1
66Host: %HOSTIP:%HTTPPORT
67User-Agent: curl/%VERSION
68Accept: */*
69
70</protocol>
71
72</verify>
73</testcase>
74