aboutsummaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
AgeCommit message (Collapse)Author
2018-02-12smtp: fix processing of initial dot in dataPatrick Monnerat
RFC 5321 4.1.1.4 specifies the CRLF terminating the DATA command should be taken into account when chasing the <CRLF>.<CRLF> end marker. Thus a leading dot character in data is also subject to escaping. Tests 911 and test server are adapted to this situation. New tests 951 and 952 check proper handling of initial dot in data. Closes #2304
2017-12-05sasl_getmesssage: make sure we have a long enough string to passDaniel Stenberg
For pop3/imap/smtp, added test 891 to somewhat verify the pop3 case. For this, I enhanced the pingpong test server to be able to send back responses with LF-only instead of always using CRLF. Closes #2150
2017-10-10ftpserver: support case insensitive commandsDaniel Stenberg
2017-10-08ftpserver: properly reset $ftptargetdir.Patrick Monnerat
2017-09-22tests: make the imap server not verify user+passwordDaniel Stenberg
... as the test cases themselves do that and it makes it easier to add crazy test cases. Test 800 updated to use user name + password that need quoting. Test 856 updated to trigger an auth fail differently. Ref: #1902
2016-11-07s/cURL/curlDaniel Stenberg
We're mostly saying just "curl" in lower case these days so here's a big cleanup to adapt to this reality. A few instances are left as the project could still formally be considered called cURL.
2016-02-03URLs: change all http:// URLs to https://Daniel Stenberg
2014-03-30ftpserver.pl: Extended the full text reply regular expressionSteve Holme
Extended the regex to include other valid characters such as those used in the reply text of Test 836.
2014-03-30ftpserver.pl: Removed some unused variablesSteve Holme
2014-03-30ftpserver.pl: Reworked some variable names to be more meaningfulSteve Holme
2014-03-29ftpserver.pl: Corrected some indentation in senddata()Steve Holme
2014-03-29ftpserver.pl: Added fallback to <data> support when using multiple URLsSteve Holme
Added support for falling back to <data> when <data1>, <data2>, etc... don't exist in the <reply> section of a unit test.
2014-03-29ftpserver.pl: Updated email based get reply data code to use new methodSteve Holme
2014-03-29ftpserver.pl: Fixed syntax error from commit 3a29ee41Steve Holme
2014-03-29ftpserver.pl: Updated argument code in STATUS_imap() to be more meaningfulSteve Holme
2014-03-29ftpserver.pl: Introduced common method for getting a test's reply dataSteve Holme
2014-01-31ftpserver.pl: directory LISTings use [CR][LF] for ASCII transferMarc Hoersken
According to section 2.2 of RFC959 the End-of-Line is defined as: The end-of-line sequence defines the separation of printing lines. The sequence is Carriage Return, followed by Line Feed. Verified by sniffing traffic between a Windows FTP client (FileZilla) and Unix-hosted FTP server (ProFTPD).
2014-01-17Fixed some XML syntax issues in the test dataDan Fandrich
Also, make the ftp server return a canned response that doesn't cause XML verification problems. Although the test file format isn't technically XML, it's still handy to be able to use XML tools to verify and manipulate them.
2014-01-04ftp tests: provide LIST responses in the test file itselfDaniel Stenberg
Previously LIST always returned a fixed hardcoded list that the ftp server code knew about, mostly since the server didn't get any test case number in the LIST scenario. Starting now, doing a CWD to a directory named test-[number] will make the test server remember that number and consider it a test case so that a subsequent LIST command will send the <data> section of that test case back. It allows LIST tests to be made more similar to how all other tests work. Test 100 was updated to provide its own directory listing.
2013-12-27ftpserver.pl: Fixed compilation errorSteve Holme
Unmatched right curly bracket at line 758, at end of line
2013-12-27ftpserver.pl: Reworked SMTP verified server detectionSteve Holme
Following the addition of informational commands to the SMTP protocol, the test server is no longer required to return the verified server information in responses that curl only outputs in verbose mode. Instead, a similar detection mechanism to that used by FTP, IMAP and POP3 can now be used.
2013-12-24pop3: Fixed APOP being determined by CAPA response rather than by timestampSteve Holme
This commit replaces that of 9f260b5d6610f3 because according to RFC-2449, section 6, there is no APOP capability "...even though APOP is an optional command in [POP3]. Clients discover server support of APOP by the presence in the greeting banner of an initial challenge enclosed in angle brackets."
2013-12-24tests: Removed APOP timestamp from default server greetingSteve Holme
2013-12-23ftpserver.pl: Updated custom full text REPLY regexSteve Holme
SASL downgrade tests: 833, 835, 879, 881, 935 and 937 would fail as they contained a minus sign in their authentication mechanism and this would be missed by the custom reply parser.
2013-12-22ftpserver.pl: Fixed runtime warning from commit 7da9c95bcf1fe6Steve Holme
Use of uninitialized value $FTPARG in concatenation (.) or string at line 3255.
2013-12-22ftpserver.pl: Added the ability to send custom full text repliesSteve Holme
2013-12-22ftpserver.pl: Added the ability to specify custom full text repliesSteve Holme
2013-12-22ftpserver.pl: Renamed commandreply variable from customreplySteve Holme
2013-11-23ftpserver.pl: Reworked fix from commit 7a36b2abc06862Steve Holme
2013-11-23ftpserver.pl: Fixed unknown IMAP command "*"Steve Holme
2013-11-23ftpserver.pl: Fixed servercmd REPLY with * detectionSteve Holme
2013-11-17tests: Added SMTP HELP testSteve Holme
2013-11-16ftpserver.pl: Added support for new SMTP commandsSteve Holme
2013-11-10ftpserver.pl: Reworked custom reply handling codeSteve Holme
1) To fix issues with IMAP custom replies 2) So initial space is not required in IMAP display text 3) To be more readable and understandable
2013-11-10ftpserver.pl: Reworked unrecognised command responsesSteve Holme
As the IMAP regex could fail and $1 would not contain the command id updated the unrecognised command response to be more generic and realistic (like those used in the command handlers). Additionally updated the POP3, SMTP and FTP responses.
2013-11-10ftpserver.pl: Fixed processing of IMAP authentication stringsSteve Holme
2013-11-06Revert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"Steve Holme
This reverts commit 558034ab7002d1 as it appears to break the auto builds. More thought is required for this!
2013-11-06ftpserver.pl: Corrected logic from commit 27b7b1062f9d97Steve Holme
2013-11-06ftpserver.pl: Fixed IMAP cmdid being sent on custom responsesSteve Holme
2013-10-23ftpserver.pl: Added support for empty pop3 authentication dataSteve Holme
2013-10-23tests: Added empty response support to custom repliesSteve Holme
...and fixed up test869 as DIGEST-MD transcript is as follows: S: Challenge C: Authentication String S: Continue Response C: Empty String
2013-10-20ftpserver.pl: Fixed syntax error from commit 5b31b38c27bb7aSteve Holme
2013-10-19ftpserver.pl: Fixed processing of POP3 authentication stringsSteve Holme
...and corrected response when check fails from 500 to -ERR.
2013-10-19tests: Added POP3 APOP authentication testSteve Holme
2013-10-19ftpserver.pl: Added support for APOP POP3 authenticationSteve Holme
2013-09-29ftpserver.pl: Fixed compilation error from commit 49341628b50007Steve Holme
2013-09-29ftpserver.pl: Moved specifying the test number from the RCPT addressSteve Holme
...to the client address as this frees the RCPT strings to contain just an email address and by passing the test number into curl as the client address remains consistent with POP3 and IMAP tests as they are specified in the URL.
2013-09-29ftpserver.pl: Added unwanted argument check to SMTP DATA command handlerSteve Holme
2013-09-22ftpserver.pl: Expanded the SMTP RCPT handler to validate TO addressesSteve Holme
RCPT_smtp() will now check for a correctly formatted TO address which allows for invalid recipient addresses to be added.
2013-09-22ftpserver.pl: Added cURL SMTP server detection to HELO command handlerSteve Holme
As curl will send a HELO command after an negative EHLO response, added the same detection from commit b07709f7417c3e to the HELO handler to ensure the test server is identified correctly and an upload isn't performed.