• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: Thu, 09 Nov 2010 14:49:00 GMT
19Server: test-server/fake swsclose
20Content-Type: text/html
21Location: ftp://%HOSTIP:%FTPPORT/1055
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/1055 -L -T log/test1055.txt
40</command>
41<file name="log/test1055.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<protocol>
58PUT /1055 HTTP/1.1
59Host: %HOSTIP:%HTTPPORT
60User-Agent: curl/%VERSION
61Accept: */*
62Content-Length: 78
63Expect: 100-continue
64
65Weird
66     file
67         to
68   upload
69for
70   testing
71the
72   PUT
73      feature
74USER anonymous
75PASS ftp@example.com
76PWD
77EPSV
78TYPE I
79STOR 1055
80QUIT
81</protocol>
82<upload>
83Weird
84     file
85         to
86   upload
87for
88   testing
89the
90   PUT
91      feature
92</upload>
93</verify>
94</testcase>
95