From 873d70a6d8863346f4b70001b5a3d6d161086171 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 18 May 2011 21:48:14 +0200 Subject: tests: verify OPEN/CLOSESOCKETFUNCTION Test 585 and 586 were added. Using a modified lib500.c --- tests/data/test586 | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 tests/data/test586 (limited to 'tests/data/test586') diff --git a/tests/data/test586 b/tests/data/test586 new file mode 100644 index 000000000..c0857bdd8 --- /dev/null +++ b/tests/data/test586 @@ -0,0 +1,59 @@ + + + +FTP +PASV +CURLOPT_PORT + + +# +# Server-side + + +line 1 +line 2 +last line + + +[OPEN] counter: 1 +[OPEN] counter: 2 +line 1 +line 2 +last line +[CLOSE] counter: 2 +[CLOSE] counter: 1 + + + +# +# Client-side + + +ftp + + +lib585 + + +FTP and open/close socket callbacks + + +ftp://%HOSTIP:%FTPPORT/586 + + + +# +# Verify data after the test has been "shot" + + +USER anonymous +PASS ftp@example.com +PWD +EPSV +TYPE I +SIZE 586 +RETR 586 +QUIT + + + -- cgit v1.2.3