From 0643829444108f3c0d8fd3a6a57c46f2b3965e7c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 12 Jan 2010 22:29:18 +0000 Subject: Added test case #1112 which does an FTPS download with strict timeout and slow data transfer in a similar way as test case #1086 does for FTP. This also exercises section for the FTPS server. --- tests/data/test1112 | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 tests/data/test1112 (limited to 'tests/data/test1112') diff --git a/tests/data/test1112 b/tests/data/test1112 new file mode 100644 index 000000000..fce324982 --- /dev/null +++ b/tests/data/test1112 @@ -0,0 +1,88 @@ + + + +FTPS +EPSV +RETR +timeout +FAILURE + + + +# Server-side + +# Overload some standard FTP responses to make them shorter and faster +# to avoid wasting time waiting for the data phase to start + +SLOWDOWN +REPLY USER 331 OK +REPLY PASS 230 OK +REPLY PWD 257 "/" +REPLY TYPE 200 OK + + +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. +Long chunk of data that couldn't possibly be sent in the time allotted. + + + +# Client-side + + +SSL + + +ftps + + +ftps + + +FTPS download with strict timeout and slow data transfer + + +-k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/1112 -m 3 + + + +# Verify data after the test has been "shot" + +# 28 is CURLE_OPERATION_TIMEDOUT + +28 + + +USER anonymous +PASS ftp@example.com +PBSZ 0 +PROT C +PWD +EPSV +TYPE I +SIZE 1112 +RETR 1112 + + + -- cgit v1.2.3