23 REPLY EPSV 500 no such command
24 REPLY FAIL 500 this might not be a failure!
37 ftp://%HOSTIP:%FTPPORT/1405 -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD" --libcurl log/test1405.c
41 # Verify data after the test has been "shot"
45 PASS ftp@example.com
\r
59 <file name="log/test1405.c" mode="text">
60 /********* Sample code generated by the curl command line tool **********
61 * All curl_easy_setopt() options are documented at:
62 * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
63 ************************************************************************/
64 #include <curl/curl.h>
66 int main(int argc, char *argv[])
70 struct curl_slist *slist1;
71 struct curl_slist *slist2;
72 struct curl_slist *slist3;
75 slist1 = curl_slist_append(slist1, "NOOP 1");
76 slist1 = curl_slist_append(slist1, "*FAIL");
78 slist2 = curl_slist_append(slist2, "NOOP 3");
80 slist3 = curl_slist_append(slist3, "NOOP 2");
81 slist3 = curl_slist_append(slist3, "*FAIL HARD");
83 hnd = curl_easy_init();
84 curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
85 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
86 curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
87 curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
88 curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
89 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
90 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
92 /* Here is a list of options the curl code used that cannot get generated
93 as source easily. You may select to either not use them or implement
96 CURLOPT_WRITEDATA set to a objectpointer
97 CURLOPT_WRITEFUNCTION set to a functionpointer
98 CURLOPT_READDATA set to a objectpointer
99 CURLOPT_READFUNCTION set to a functionpointer
100 CURLOPT_SEEKDATA set to a objectpointer
101 CURLOPT_SEEKFUNCTION set to a functionpointer
102 CURLOPT_ERRORBUFFER set to a objectpointer
103 CURLOPT_STDERR set to a objectpointer
104 CURLOPT_DEBUGFUNCTION set to a functionpointer
105 CURLOPT_DEBUGDATA set to a objectpointer
106 CURLOPT_HEADERFUNCTION set to a functionpointer
107 CURLOPT_HEADERDATA set to a objectpointer
111 ret = curl_easy_perform(hnd);
113 curl_easy_cleanup(hnd);
115 curl_slist_free_all(slist1);
117 curl_slist_free_all(slist2);
119 curl_slist_free_all(slist3);
124 /**** End of sample code ****/
127 # CURLOPT_USERAGENT and CURLOPT_MAXREDIRS requires HTTP protocol
128 # support, IOW depends on configuration - just ignore these.
129 $_ = '' if /CURLOPT_USERAGENT/
130 $_ = '' if /CURLOPT_MAXREDIRS/
131 # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
133 $_ = '' if /CURLOPT_SSL_VERIFYPEER/
134 $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/