summaryrefslogtreecommitdiff
path: root/tests/data/test1232
blob: 1c5bc2031be3cf4ffc4f5212d05a3330065d9e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<testcase>
<info>
# This test is a copy of test 1231, modified to use a HTTP proxy.
<keywords>
HTTP
HTTP GET
HTTP proxy
dotdot removal
</keywords>
</info>

#
# Server-side
<reply name="1">
<data>
HTTP/1.1 200 OK
Content-Length: 6
Connection: close

-foo-
</data>

<data1>
HTTP/1.1 200 OK
Content-Length: 7
Connection: close

-cool-
</data1>
</reply>

#
# Client-side
<client>
<server>
http
</server>
 <name>
HTTP URL with dotdot removal from path using an HTTP proxy
 </name>
 <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1232:8990/../../hej/but/who/../1232?stupid=me/../1232#soo/../1232 http://test.remote.haxx.se.1232:8990/../../hej/but/who/../12320001#/../12320001
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET http://test.remote.haxx.se.1232:8990/hej/but/1232?stupid=me/../1232 HTTP/1.1
Host: test.remote.haxx.se.1232:8990
Accept: */*

GET http://test.remote.haxx.se.1232:8990/hej/but/12320001 HTTP/1.1
Host: test.remote.haxx.se.1232:8990
Accept: */*

</protocol>
</verify>
</testcase>