curl-library
Re: error 425
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Jan 2008 23:48:19 +0100 (CET)
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 0.0.0.21...
[...]
> ret = curl_easy_setopt(hFtpGetSession, CURLOPT_FTPPORT, "21");
A little quote from this URL:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTFTPPORT
"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: http://haxx.se/curl.htmlReceived on 2008-01-07