xref: /curl/tests/data/test1232 (revision 3fd80c7b)
1<testcase>
2<info>
3# This test is a copy of test 1231, modified to use an HTTP proxy.
4<keywords>
5HTTP
6HTTP GET
7HTTP proxy
8dotdot removal
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<data>
16HTTP/1.1 200 OK
17Content-Length: 6
18Connection: close
19
20-foo-
21</data>
22
23<data1>
24HTTP/1.1 200 OK
25Content-Length: 7
26Connection: close
27
28-cool-
29</data1>
30</reply>
31
32#
33# Client-side
34<client>
35<server>
36http
37</server>
38<name>
39HTTP URL with dotdot removal from path using an HTTP proxy
40</name>
41<command>
42--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/../../hej/but/who/../%TESTNUMBER?stupid=me/../%TESTNUMBER#soo/../%TESTNUMBER http://test.remote.haxx.se.%TESTNUMBER:8990/../../hej/but/who/../%TESTNUMBER0001#/../%TESTNUMBER0001
43</command>
44<features>
45proxy
46</features>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol>
53GET http://test.remote.haxx.se.%TESTNUMBER:8990/hej/but/%TESTNUMBER?stupid=me/../%TESTNUMBER HTTP/1.1
54Host: test.remote.haxx.se.%TESTNUMBER:8990
55User-Agent: curl/%VERSION
56Accept: */*
57Proxy-Connection: Keep-Alive
58
59GET http://test.remote.haxx.se.%TESTNUMBER:8990/hej/but/%TESTNUMBER0001 HTTP/1.1
60Host: test.remote.haxx.se.%TESTNUMBER:8990
61User-Agent: curl/%VERSION
62Accept: */*
63Proxy-Connection: Keep-Alive
64
65</protocol>
66</verify>
67</testcase>
68