From 5971d401d4fd184aedd3b439251a898ecdacb96e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 4 Dec 2011 23:10:12 +0100 Subject: test: verify the opensocket callback for FTP test 595: for passive FTP test 596: for active FTP --- tests/libtest/lib500.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/libtest') diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c index 51680fc31..812fb0dd5 100644 --- a/tests/libtest/lib500.c +++ b/tests/libtest/lib500.c @@ -76,6 +76,9 @@ int test(char *URL) test_setopt(curl, CURLOPT_URL, URL); test_setopt(curl, CURLOPT_HEADER, 1L); + if(libtest_arg3 && !strcmp(libtest_arg3, "activeftp")) + test_setopt(curl, CURLOPT_FTPPORT, "-"); + setupcallbacks(curl); res = curl_easy_perform(curl); -- cgit v1.2.3