Problem with CURLOPT_PORT
Date: Mon, 18 Apr 2005 15:57:48 +0200 (CEST)
I would like to specify a particular port (not 21) to connect to a ftp
I can do it in the url (ftp://22.214.171.124:22) but I would like to use the
Unfortunately, this one has no effect: I set CURLOPT_PORT to 22 but my
client always connects to the server on the port 21.
Here is the code :
CURL* curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, "ftp://126.96.36.199");
curl_easy_setopt(curl, CURLOPT_PORT, 22);
curl_easy_setopt(curl, CURLOPT_USERPWD, "xxx:yyy");
Thank you if you can explain me the behavior of CURLOPT_PORT.
Received on 2005-04-18