2008-07-30 17:04:44 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP PUT
|
|
|
|
followlocation
|
|
|
|
FTP
|
|
|
|
EPSV
|
|
|
|
STOR
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 307 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2008-07-30 17:04:44 -04:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Content-Type: text/html
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
|
2008-07-30 17:04:44 -04:00
|
|
|
Content-Length: 0
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
ftp
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP PUT Location: redirect to FTP URL
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T log/test%TESTNUMBER.txt
|
2008-07-30 17:04:44 -04:00
|
|
|
</command>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file name="log/test%TESTNUMBER.txt">
|
2008-07-30 17:04:44 -04:00
|
|
|
Weird
|
|
|
|
file
|
|
|
|
to
|
|
|
|
upload
|
|
|
|
for
|
|
|
|
testing
|
|
|
|
the
|
|
|
|
PUT
|
|
|
|
feature
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
PUT /%TESTNUMBER HTTP/1.1
|
2008-07-30 17:04:44 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2008-07-30 17:04:44 -04:00
|
|
|
Accept: */*
|
2008-08-04 18:00:22 -04:00
|
|
|
Content-Length: 78
|
|
|
|
Expect: 100-continue
|
2008-07-30 17:04:44 -04:00
|
|
|
|
2008-08-04 18:00:22 -04:00
|
|
|
Weird
|
|
|
|
file
|
|
|
|
to
|
|
|
|
upload
|
|
|
|
for
|
|
|
|
testing
|
|
|
|
the
|
|
|
|
PUT
|
|
|
|
feature
|
2008-07-30 17:04:44 -04:00
|
|
|
USER anonymous
|
|
|
|
PASS ftp@example.com
|
|
|
|
PWD
|
|
|
|
EPSV
|
|
|
|
TYPE I
|
2021-03-12 11:38:26 -05:00
|
|
|
STOR %TESTNUMBER
|
2008-07-30 17:04:44 -04:00
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
<upload>
|
|
|
|
Weird
|
|
|
|
file
|
|
|
|
to
|
|
|
|
upload
|
|
|
|
for
|
|
|
|
testing
|
|
|
|
the
|
|
|
|
PUT
|
|
|
|
feature
|
|
|
|
</upload>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|