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