curl-library
Re: Error when download file from server which have configured load balancing
Date: Mon, 18 Aug 2008 15:34:05 -0700
On Mon, Aug 18, 2008 at 05:23:10PM +0800, ianguo_at_linpus.com wrote:
> When we use http, the above codes works fine. But when use ftp,
> libcurl fails. libcurl send request to server A:21, then A dispatch
> B:1234 to response, but libcurl still try to connect server A:1234. It
> will certainly fail, because the port 1234 of server A is forbidden to
> access.
>
> I have read the manual of libcurl, but I cannot find a solution. Can
> anybody help me to solve the problem? Thank you.
This is the behaviour I would expect if the CURLOPT_FTP_SKIP_PASV_IP were
set; it should honour the IP address otherwise. Have you tried setting
CURLOPT_FTP_USE_EPSV to 0 to disable EPSV and see if that makes a difference?
Could there be a proxy in the way that is rewriting FTP responses?
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-08-19