FIXED.
Refer to the last post for how to fix it.Hello.
When I try to download a file from a FTP server, I'm able to connect, change directories, get files inside of current directory etc, no connection issues and whatever, but I still get a 1003 error as a status of my download. There's no string inside of getMessage() either.
Here's what I do:
sf::Ftp::Response x=ftp.download("master.txt","C:\"master.txt");
std::cout<<"FTP Download: "<<x.getStatus()<<" : "<<x.getMessage()<<"\n";
It prints:
FTP Download: 1003 :
Nothing after.
Here's the server's log of the ecounter:
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 230 Logged on
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> PWD
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 257 "/" is current directory.
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> CWD 0.12/
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 250 CWD successful. "/0.12" is current directory.
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> PASV
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,199,216)
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> TYPE I
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 200 Type set to I
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> RETR /0.12//master.txt
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 150 Connection accepted
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 226 Transfer OK
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> PWD
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 257 "/0.12" is current directory.
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> PASV
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,199,218)
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> TYPE A
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 200 Type set to A
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> NLST /0.12
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 150 Connection accepted
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 226 Transfer OK
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> QUIT
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> 221 Goodbye
(000032)3/22/2014 13:25:37 PM - update (127.0.0.1)> disconnected.
Thanks.