xref: /curl/tests/data/test391 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6--path-as-is
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 301 OK
15Content-Length: 6
16Content-Type: text/html
17Location: ../%TESTNUMBER0002
18
19-foo-
20</data>
21<data2>
22HTTP/1.1 200 OK
23Content-Length: 6
24Content-Type: text/html
25
26-muu-
27</data2>
28<datacheck>
29HTTP/1.1 301 OK
30Content-Length: 6
31Content-Type: text/html
32Location: ../%TESTNUMBER0002
33
34HTTP/1.1 200 OK
35Content-Length: 6
36Content-Type: text/html
37
38-muu-
39</datacheck>
40</reply>
41
42#
43# Client-side
44<client>
45<server>
46http
47</server>
48<name>
49--path-as-is with redirect, keeping dotdots
50</name>
51<command>
52http://%HOSTIP:%HTTPPORT/../../%TESTNUMBER --path-as-is -L
53</command>
54</client>
55
56#
57# Verify data after the test has been "shot"
58<verify>
59<protocol>
60GET /../../%TESTNUMBER HTTP/1.1
61Host: %HOSTIP:%HTTPPORT
62User-Agent: curl/%VERSION
63Accept: */*
64
65GET /../%TESTNUMBER0002 HTTP/1.1
66Host: %HOSTIP:%HTTPPORT
67User-Agent: curl/%VERSION
68Accept: */*
69
70</protocol>
71</verify>
72</testcase>
73