Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_FTPPORT(3) | curl_easy_setopt options | CURLOPT_FTPPORT(3) |
NAME
CURLOPT_FTPPORT - make FTP transfer activeSYNOPSIS
#include <curl/curl.h>DESCRIPTION
Pass a pointer to a zero terminated string as parameter. It specifies that the FTP transfer will be made actively and the given string will be used to get the IP address to use for the FTP PORT instruction.eth0:0 192.168.1.2:32000-33000 curl.se:32123 [::1]:1234-4567
DEFAULT
NULLPROTOCOLS
FTPEXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/old-server/file.txt"); curl_easy_setopt(curl, CURLOPT_FTPPORT, "-"); ret = curl_easy_perform(curl); curl_easy_cleanup(curl); }
AVAILABILITY
Port range support was added in 7.19.5RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.SEE ALSO
CURLOPT_FTP_USE_EPRT(3), CURLOPT_FTP_USE_EPSV(3),May 30, 2017 | libcurl 7.69.0 |