xref: /curl/tests/data/test1055 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6followlocation
7FTP
8EPSV
9STOR
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<data>
17HTTP/1.1 307 OK
18Date: Tue, 09 Nov 2010 14:49:00 GMT
19Server: test-server/fake swsclose
20Content-Type: text/html
21Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
22Content-Length: 0
23Connection: close
24
25</data>
26</reply>
27
28#
29# Client-side
30<client>
31<server>
32http
33ftp
34</server>
35<name>
36HTTP PUT Location: redirect to FTP URL
37</name>
38<command>
39http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T %LOGDIR/test%TESTNUMBER.txt
40</command>
41<file name="%LOGDIR/test%TESTNUMBER.txt">
42Weird
43     file
44         to
45   upload
46for
47   testing
48the
49   PUT
50      feature
51</file>
52</client>
53
54#
55# Verify data after the test has been "shot"
56<verify>
57<strip>
58QUIT
59</strip>
60<protocol>
61PUT /%TESTNUMBER HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63User-Agent: curl/%VERSION
64Accept: */*
65Content-Length: 78
66
67Weird
68     file
69         to
70   upload
71for
72   testing
73the
74   PUT
75      feature
76USER anonymous
77PASS ftp@example.com
78PWD
79EPSV
80TYPE I
81STOR %TESTNUMBER
82QUIT
83</protocol>
84<upload>
85Weird
86     file
87         to
88   upload
89for
90   testing
91the
92   PUT
93      feature
94</upload>
95</verify>
96</testcase>
97