aboutsummaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
AgeCommit message (Collapse)Author
2020-03-04tests: try to make sleeping portable by avoiding selectMarc Hoersken
select does not support just waiting on Windows: https://perldoc.perl.org/perlport.html#select Reviewed-By: Daniel Stenberg Closes #5035
2020-02-26smtp: Support the SMTPUTF8 extension in the VRFY commandSteve Holme
2020-02-26smtp: Support the SMTPUTF8 extension in the RCPT TO commandSteve Holme
Note: The RCPT TO command isn't required to advertise to the server that it contains UTF-8 characters, instead the server is told that a mail may contain UTF-8 in any envelope command via the MAIL command.
2020-02-26smtp: Support the SMTPUTF8 extension in the MAIL commandSteve Holme
Support the SMTPUTF8 extension when sending mailbox information in the MAIL command (FROM and AUTH parameters). Non-ASCII domain names will be ACE encoded, if IDN is supported, whilst non-ASCII characters in the local address part are passed to the server. Reported-by: ygthien on github Fixes #4828
2020-02-26smtp: Support UTF-8 based host names in the VRFY commandSteve Holme
2020-02-24ftpserver: Updated VRFY_smtp() so the response isn't necessary in the test caseSteve Holme
2020-02-24ftpserver: Corrected the e-mail address regex in MAIL_smtp() and RCTP_smtp()Steve Holme
The dot character between the host and the tld was not being escaped, which meant it specified a match of 'any' character rather than an explicit dot separator. Additionally removed the dot character from the host name as it allowed the following to be specified as a valid address in our test cases: <bad@example......com> Both are typos from 98f7ca7 and 8880f84 :( I can't remember whether my intention was to allow sub-domains to be specified in the host or not with these additional dots, but by placing it outside of the host means it can only be specified once per domain and by placing a + after the new grouping support for sub-domains is kept. Closes #4912
2019-12-09tests: make it possible to set executable extensionsMarc Hoersken
This enables the use of Windows Subsystem for Linux (WSL) to run the testsuite against Windows binaries while using Linux servers. This commit introduces the following environment variables: - CURL_TEST_EXE_EXT: set the executable extension for all components - CURL_TEST_EXE_EXT_TOOL: set it for the curl tool only - CURL_TEST_EXE_EXT_SSH: set it for the SSH tools only Later testcurl.pl could be adjusted to make use of those variables. - CURL_TEST_EXE_EXT_SRV: set it for the test servers only (This is one of several commits to support use of WSL for the tests.) Closes https://github.com/curl/curl/pull/3899
2018-09-06imap: change from "FETCH" to "UID FETCH"Nicklas Avén
... and add "MAILINDEX". As described in #2789, this is a suggested solution. Changing UID=xx to actually get mail with UID xx and add "MAILINDEX" to get a mail with a special index in the mail box (old behavior). So MAILINDEX=1 gives the first non deleted mail in the mail box. Fixes #2789 Closes #2815
2018-02-23spelling fixesViktor Szakats
Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
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