cURL / Mailing Lists / curl-library / Single Mail


Re: error 425

From: Daniel Stenberg <>
Date: Mon, 7 Jan 2008 23:48:19 +0100 (CET)

On Mon, 7 Jan 2008, tristan wrote:

>> ... no surprise really, since it fails to connect to


> ret = curl_easy_setopt(hFtpGetSession, CURLOPT_FTPPORT, "21");

A little quote from this URL:

   "Pass a pointer to a zero terminated string as parameter. It will be used to
    get the IP address to use for the ftp PORT instruction."

IOW, "21" is completely wrong there. For most cases and purposes, passing a
"-" is fine.

  Commercial curl and libcurl Technical Support:
Received on 2008-01-07