summaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
Commit message (Collapse)AuthorAgeFilesLines
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* ftp: make a 552 response return CURLE_REMOTE_DISK_FULLDaniel Stenberg2020-09-261-1/+16
| | | | | | | | | Added test 348 to verify. Added a 'STOR' command to the test FTP server to enable test 348. Documented the command in FILEFORMAT.md Reported-by: Duncan Wilcox Fixes #6016 Closes #6017
* runtests: support dynamicly base64 encoded sections in testsDaniel Stenberg2020-08-041-11/+19
| | | | | | | | | | | | | | | | | | This allows us to make test cases to use base64 at run-time and still use and verify information determined at run-time, such as the IMAP test server's port number in test 842. This change makes 12 tests run again that basically never ran since we moved to dynamic port numbers. ftpserver.pl is adjusted to load test instructions and test number from the preprocessed test file. FILEFORMAT.md now documents the new base64 encoding syntax. Reported-by: Marcel Raad Fixes #5761 Closes #5775
* ftpserver: don't verify SMTP MAIL FROM namesDaniel Stenberg2020-07-031-7/+2
| | | | | | | Rely on tests asking the names to get refused instead - test servers should be as dumb as possible. Edited test 914, 955 and 959 accordingly. Closes #5639
* tests: move pingpong server to dynamic listening portDaniel Stenberg2020-04-181-3/+24
| | | | | | | | FTP, IMAP, POP3, SMTP and their IPv6 versions are now all on dynamic ports Test 842-845 are unfortunately a bit hard to move over to this concept right now and require "default port" still...
* tests: add Windows compatible pidwait like pidkill and pidtermMarc Hoersken2020-04-111-1/+1
| | | | Related to #5188
* ftpserver.pl: log before and after data connection is closedMarc Hoersken2020-04-021-1/+4
|
* cleanup: fix some text/comment typosViktor Szakats2020-03-121-2/+2
| | | | Closes #5087
* tests: try to make sleeping portable by avoiding selectMarc Hoersken2020-03-041-3/+3
| | | | | | | | select does not support just waiting on Windows: https://perldoc.perl.org/perlport.html#select Reviewed-By: Daniel Stenberg Closes #5035
* smtp: Support the SMTPUTF8 extension in the VRFY commandSteve Holme2020-02-261-5/+10
|
* smtp: Support the SMTPUTF8 extension in the RCPT TO commandSteve Holme2020-02-261-4/+7
| | | | | | 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.
* smtp: Support the SMTPUTF8 extension in the MAIL commandSteve Holme2020-02-261-5/+9
| | | | | | | | | | 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
* smtp: Support UTF-8 based host names in the VRFY commandSteve Holme2020-02-261-1/+7
|
* ftpserver: Updated VRFY_smtp() so the response isn't necessary in the test caseSteve Holme2020-02-241-3/+15
|
* ftpserver: Corrected the e-mail address regex in MAIL_smtp() and RCTP_smtp()Steve Holme2020-02-241-3/+3
| | | | | | | | | | | | | | | | | | | | | 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
* tests: make it possible to set executable extensionsMarc Hoersken2019-12-091-3/+7
| | | | | | | | | | | | | | | | | 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
* imap: change from "FETCH" to "UID FETCH"Nicklas Avén2018-09-061-1/+7
| | | | | | | | | | | | ... 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
* spelling fixesViktor Szakats2018-02-231-2/+2
| | | | | | | | Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
* smtp: fix processing of initial dot in dataPatrick Monnerat2018-02-121-2/+2
| | | | | | | | | | | 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
* sasl_getmesssage: make sure we have a long enough string to passDaniel Stenberg2017-12-051-5/+11
| | | | | | | | | | 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
* ftpserver: support case insensitive commandsDaniel Stenberg2017-10-101-1/+1
|
* ftpserver: properly reset $ftptargetdir.Patrick Monnerat2017-10-081-1/+1
|
* tests: make the imap server not verify user+passwordDaniel Stenberg2017-09-221-12/+3
| | | | | | | | | | | ... 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
* s/cURL/curlDaniel Stenberg2016-11-071-5/+5
| | | | | | 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.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* ftpserver.pl: Extended the full text reply regular expressionSteve Holme2014-03-301-1/+1
| | | | | Extended the regex to include other valid characters such as those used in the reply text of Test 836.
* ftpserver.pl: Removed some unused variablesSteve Holme2014-03-301-5/+0
|
* ftpserver.pl: Reworked some variable names to be more meaningfulSteve Holme2014-03-301-15/+15
|
* ftpserver.pl: Corrected some indentation in senddata()Steve Holme2014-03-291-11/+12
|
* ftpserver.pl: Added fallback to <data> support when using multiple URLsSteve Holme2014-03-291-0/+3
| | | | | Added support for falling back to <data> when <data1>, <data2>, etc... don't exist in the <reply> section of a unit test.
* ftpserver.pl: Updated email based get reply data code to use new methodSteve Holme2014-03-291-130/+13
|
* ftpserver.pl: Fixed syntax error from commit 3a29ee41Steve Holme2014-03-291-1/+1
|
* ftpserver.pl: Updated argument code in STATUS_imap() to be more meaningfulSteve Holme2014-03-291-4/+7
|
* ftpserver.pl: Introduced common method for getting a test's reply dataSteve Holme2014-03-291-3/+21
|
* ftpserver.pl: directory LISTings use [CR][LF] for ASCII transferMarc Hoersken2014-01-311-0/+3
| | | | | | | | | 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).
* Fixed some XML syntax issues in the test dataDan Fandrich2014-01-171-4/+4
| | | | | | | 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.
* ftp tests: provide LIST responses in the test file itselfDaniel Stenberg2014-01-041-7/+25
| | | | | | | | | | | | | | 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.
* ftpserver.pl: Fixed compilation errorSteve Holme2013-12-271-1/+0
| | | | Unmatched right curly bracket at line 758, at end of line
* ftpserver.pl: Reworked SMTP verified server detectionSteve Holme2013-12-271-76/+63
| | | | | | | | | 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.
* pop3: Fixed APOP being determined by CAPA response rather than by timestampSteve Holme2013-12-241-17/+24
| | | | | | | | 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."
* tests: Removed APOP timestamp from default server greetingSteve Holme2013-12-241-1/+1
|
* ftpserver.pl: Updated custom full text REPLY regexSteve Holme2013-12-231-1/+1
| | | | | | 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.
* ftpserver.pl: Fixed runtime warning from commit 7da9c95bcf1fe6Steve Holme2013-12-221-1/+1
| | | | | Use of uninitialized value $FTPARG in concatenation (.) or string at line 3255.
* ftpserver.pl: Added the ability to send custom full text repliesSteve Holme2013-12-221-19/+28
|
* ftpserver.pl: Added the ability to specify custom full text repliesSteve Holme2013-12-221-1/+7
|
* ftpserver.pl: Renamed commandreply variable from customreplySteve Holme2013-12-221-14/+14
|
* ftpserver.pl: Reworked fix from commit 7a36b2abc06862Steve Holme2013-11-231-10/+32
|
* ftpserver.pl: Fixed unknown IMAP command "*"Steve Holme2013-11-231-1/+2
|
* ftpserver.pl: Fixed servercmd REPLY with * detectionSteve Holme2013-11-231-1/+1
|
* tests: Added SMTP HELP testSteve Holme2013-11-171-2/+2
|