1CURLOPT_FTP_USE_EPRT(3) curl_easy_setopt options CURLOPT_FTP_USE_EPRT(3)
2
3
4
6 CURLOPT_FTP_USE_EPRT - enable/disable use of EPRT with FTP
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_USE_EPRT, long
12 enabled);
13
15 Pass a long. If the value is 1, it tells curl to use the EPRT command
16 when doing active FTP downloads (which is enabled by CURLOPT_FTP‐
17 PORT(3)). Using EPRT means that it will first attempt to use EPRT
18 before using PORT, but if you pass zero to this option, it will not try
19 using EPRT, only plain PORT.
20
21 If the server is an IPv6 host, this option will have no effect as EPRT
22 is necessary then.
23
28 Added in 7.10.5
29
31 Returns CURLE_OK
32
34 CURLOPT_FTP_USE_EPSV(3), CURLOPT_FTPPORT(3),
35
36
37
38libcurl 7.71.1 March 23, 2020 CURLOPT_FTP_USE_EPRT(3)