QProcess *mProcess;
QStringList arguments;
arguments<<"--disable-epsv"
<<"--connect-timeout"<<"10" //链接超时
<<"-u"<<"ftpuser"+":"+"passwd" //用户名,密码 <<"-u"<<"test:123"
<<"-T"<<"/opt/test.txt"
<<"ftp://192.168.1.23/upload/"
<<"--speed-time"<<"30"
<<"--speed-limit"<<"10";
mProcess->kill();
mProcess->start("curl",arguments);
mProcess->waitForFinished();
时间: 2024-11-05 02:27:05