GNURLOPT_FTP_USE_EPRT(3)
π GNURLOPT_FTP_USE_EPRT(3) β curl_easy_setopt options π
Ok bestie, welcome to the GNURLOPT_FTP_USE_EPRT(3) manual page, tucked under the curl_easy_setopt options umbrella. This one is all about whether FTP active downloads say hi with EPRT first or keep it plain PORT. π
π NAME π
CURLOPT_FTP_USE_EPRT - enable/disable use of EPRT with FTP
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_USE_EPRT, long enabled);
π¦ DESCRIPTION π¦
You pass a long here, bestie. If the value is 1, it tells curl to use the EPRT command when doing active FTP downloads β and active FTP downloads are the ones enabled by CURLOPT_FTPPORT(3). Using EPRT means that it will first attempt to use EPRT before using PORT. But if you pass zero to this option, it will not try using EPRT, only plain PORT. Periodt.
And listen: if the server is an IPv6 host, this option will have no effect, because EPRT is necessary then. Thatβs just how it is. π«Ά
πΈ DEFAULT πΈ
The original page has no default listed here β nothing to spill, no cap. π
π PROTOCOLS π
The original page leaves this section empty too. Literally no protocol list on this page. π
π EXAMPLE π
Also empty on the original page, bestie β no example code to show here. π§
β AVAILABILITY β
Added in 7.10.5
π RETURN VALUE π
Returns CURLE_OK
π SEE ALSO π
CURLOPT_FTP_USE_EPSV(3)CURLOPT_FTPPORT(3)β and yes, the original even leaves a trailing comma afterCURLOPT_FTPPORT(3),β we love a dramatic pause. π
Thatβs the whole vibe: brought to you by libcurl 7.37.0, dated 19 Jun 2014, with the manual tag GNURLOPT_FTP_USE_EPRT(3) doing its thing. mwah πβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms