1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 21:15:08 -05:00
curl/tests/data/test541
Daniel Stenberg 9e88343a17 Daniel S (12 September 2007)
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed
  out a problem with doing an empty upload over FTP on a re-used connection.
  I added test case 541 to reproduce it and to verify the fix.

- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
  second transfer as it didn't store and remember the "" path from the
  previous transfer so it would instead CWD to the entry path as stored. This
  worked, but did a superfluous command. Thus, test case 541 now also verifies
  this fix.
2007-09-11 22:23:57 +00:00

52 lines
588 B
Plaintext

<testcase>
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
ftp
</server>
# tool is what to use instead of 'curl'
<tool>
lib541
</tool>
<name>
FTP upload and upload same file again without rewind
</name>
<command>
ftp://%HOSTIP:%FTPPORT/541 log/upload541
</command>
<file name="log/upload541">
Contents
of
a file
to verify
ftp
upload
works?
</file>
</client>
# Verify data after the test has been "shot"
<verify>
<upload>
</upload>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
EPSV
TYPE I
STOR 541
EPSV
STOR 541
QUIT
</protocol>
</verify>
</testcase>