GNURLOPT_FTP_USE_EPRT(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸŽ€ 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 πŸ’œ


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