aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib500.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-04 23:10:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-04 23:10:12 +0100
commit5971d401d4fd184aedd3b439251a898ecdacb96e (patch)
tree51d88fb51ab7438ecc75f56378266409018c5801 /tests/libtest/lib500.c
parent62d3652b43124cb1d9b962acba05b41cd61f9343 (diff)
test: verify the opensocket callback for FTP
test 595: for passive FTP test 596: for active FTP
Diffstat (limited to 'tests/libtest/lib500.c')
-rw-r--r--tests/libtest/lib500.c3
1 files changed, 3 insertions, 0 deletions
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);