1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00
curl/tests/data/test108

57 lines
808 B
Plaintext
Raw Normal View History

<testcase>
2005-04-27 05:59:47 -04:00
<info>
<keywords>
FTP
PORT
STOR
</keywords>
</info>
2001-09-13 08:51:07 -04:00
# Server-side
<reply>
<data>
</data>
</reply>
# Client-side
<client>
<server>
ftp
</server>
2001-09-13 08:51:07 -04:00
<name>
FTP PORT upload with CWD
</name>
<command>
ftp://%HOSTIP:%FTPPORT/CWD/STOR/RETR/108 -T log/upload108 -P -
</command>
<file name="log/upload108">
Moooooooooooo
upload this
</file>
</client>
2001-09-13 08:51:07 -04:00
# Verify data after the test has been "shot"
<verify>
# Strip all valid kinds of PORT and EPRT that curl can send
2001-09-13 08:51:07 -04:00
<strip>
^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
2001-09-13 08:51:07 -04:00
</strip>
<protocol>
USER anonymous
PASS ftp@example.com
2001-09-13 08:51:07 -04:00
PWD
2003-04-30 13:16:25 -04:00
CWD CWD
CWD STOR
CWD RETR
2001-09-13 08:51:07 -04:00
PORT 127,0,0,1,5,109
TYPE I
STOR 108
QUIT
2001-09-13 08:51:07 -04:00
</protocol>
<upload>
Moooooooooooo
upload this
</upload>
</verify>
</testcase>