Changed some FTP tests to validate the format of the PORT and EPRT commands

sent by curl, if not the addresses themselves.
This commit is contained in:
Dan Fandrich
2007-09-17 21:44:57 +00:00
parent 048c74f2fa
commit 7f496d8c3f
19 changed files with 74 additions and 73 deletions

View File

@@ -31,9 +31,10 @@ data blobb
# Verify data after the test has been "shot"
<verify>
# Strip the addresses and port number but leave the rest
<strippart>
s/^(EPRT \|1\|127.0.0.1).*/$1/
s/^(PORT 127,0,0,1,).*/$1/
s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
</strippart>
<protocol>
USER anonymous
@@ -41,12 +42,12 @@ PASS ftp@example.com
PWD
CWD a
CWD path
EPRT |1|127.0.0.1
PORT 127,0,0,1,
EPRT |1|
PORT
TYPE I
SIZE 212
RETR 212
PORT 127,0,0,1,
PORT
SIZE 212
RETR 212
QUIT