summaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ftpserver.pl: Added support for new SMTP commandsSteve Holme2013-11-161-0/+112
|
* ftpserver.pl: Reworked custom reply handling codeSteve Holme2013-11-101-16/+15
| | | | | | 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
* ftpserver.pl: Reworked unrecognised command responsesSteve Holme2013-11-101-3/+3
| | | | | | | | 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.
* ftpserver.pl: Fixed processing of IMAP authentication stringsSteve Holme2013-11-101-6/+13
|
* Revert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"Steve Holme2013-11-061-1/+1
| | | | | This reverts commit 558034ab7002d1 as it appears to break the auto builds. More thought is required for this!
* ftpserver.pl: Corrected logic from commit 27b7b1062f9d97Steve Holme2013-11-061-1/+1
|
* ftpserver.pl: Fixed IMAP cmdid being sent on custom responsesSteve Holme2013-11-061-1/+2
|
* ftpserver.pl: Added support for empty pop3 authentication dataSteve Holme2013-10-231-1/+1
|
* tests: Added empty response support to custom repliesSteve Holme2013-10-231-2/+7
| | | | | | | | | ...and fixed up test869 as DIGEST-MD transcript is as follows: S: Challenge C: Authentication String S: Continue Response C: Empty String
* ftpserver.pl: Fixed syntax error from commit 5b31b38c27bb7aSteve Holme2013-10-201-1/+1
|
* ftpserver.pl: Fixed processing of POP3 authentication stringsSteve Holme2013-10-191-0/+11
| | | | ...and corrected response when check fails from 500 to -ERR.
* tests: Added POP3 APOP authentication testSteve Holme2013-10-191-1/+4
|
* ftpserver.pl: Added support for APOP POP3 authenticationSteve Holme2013-10-191-1/+25
|
* ftpserver.pl: Fixed compilation error from commit 49341628b50007Steve Holme2013-09-291-1/+1
|
* ftpserver.pl: Moved specifying the test number from the RCPT addressSteve Holme2013-09-291-9/+15
| | | | | | | ...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.
* ftpserver.pl: Added unwanted argument check to SMTP DATA command handlerSteve Holme2013-09-291-44/+58
|