pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.04k stars 2.11k forks source link

Using passive mode, it seems that it has not been converted to data connection #4543

Closed gitboy9 closed 2 months ago

gitboy9 commented 2 months ago

my code is like this: FTPClientSession session("hostip"); session.login("username", "passwd"); session.sendCommand("EPSV", respose); session.setPassive(true); session.sendCommand("RETR test.txt", respose);

the response returned message is that’ 425 Can't open data connection for transfer of "/test.txt"‘ So I'm very curious because it's written in the constructor that passive mode will be converted to data connection.

And I want to implement the breakpoint continuation function, but I have looked at all the FTP APIs and have not directly implemented the breakpoint continuation API, so I want to adopt the method of directly sending commands to implement it