blob: 367265c802b86da5a1ef7f2e5986a3a46627dc1f [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP proxy
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 OK
13Server: Blafasel/5.0
14Date: Sat, 16 Jan 2021 14:48:30 GMT
15Content-Length: 12
16
17Bla bla bla
18</data>
19
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27<features>
28proxy
29</features>
30 <name>
31HTTP GET request with proxy and --proxy-header "Proxy-Connection: Keep-Alive"
32 </name>
33 <command>
34--proxy http://%HOSTIP:%HTTPPORT --proxy-header "Proxy-Connection: Keep-Alive" http://%HOSTIP:%HTTPPORT/%TESTNUMBER
35</command>
36</client>
37
38<verify>
39<protocol>
40GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
41Host: %HOSTIP:%HTTPPORT
42User-Agent: curl/%VERSION
43Accept: */*
44Proxy-Connection: Keep-Alive
45
46</protocol>
47</verify>
48</testcase>