blob: d0769ad85414a11e86843f29c4be035c69fd8581 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Server: test-server/fake
15Content-Length: 5
16
17bing
18</data>
19<data1>
20HTTP/1.1 200 OK
21Server: test-server/fake
22Content-Length: 6
23
24wrong
25</data1>
26</reply>
27
28#
29# Client-side
30<client>
31<server>
32http
33https
34</server>
35 <name>
36HTTP GET same URL - different proxy ports
37 </name>
38 <command>
39http://%HOSTIP:%HTTPPORT/1244 -x %HOSTIP:%HTTPPORT --next http://%HOSTIP:%HTTPPORT/124400001 -x %HOSTIP:%HTTPSPORT
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46# the second request meant to fail
47<errorcode>
4856
49</errorcode>
50<strip>
51^User-Agent:.*
52</strip>
53<protocol>
54GET http://%HOSTIP:%HTTPPORT/1244 HTTP/1.1
55Host: %HOSTIP:%HTTPPORT
56Accept: */*
57Proxy-Connection: Keep-Alive
58
59</protocol>
60</verify>
61</testcase>