我可以创建一个文件夹,我可以重命名文件,但我不能上传和下载文件到ftp。显示的异常是System.Net.WebException:远程服务器返回错误:(500)语法错误,命令无法识别。
有人知道为什么吗?
日志文件:System.Net Information: 0 : [6112] FtpControlStream#7746814 - Resposta recebida [500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this] System.Net I
我使用Notepad++和FTP_Synchronize将文件上传到服务器,但是,它似乎不允许我的文件上传,因为显然“磁盘配额超出了”。
11:18:49 > -> TYPE I
11:18:49 > Response (200): Type set to I
11:18:49 > -> PASV
11:18:49 > Response (227): Entering Passive Mode (*,*,*,*,*,*).
11:18:50 > -> STOR /home/*/../../var/www/html/test.html
11:18:
是的,几年前就已经在这里被询问和回答了。
我唯一的问题是答案与现实不符。应该重用FTP连接,但它不是,我的curl版本是7.44.0 32/64位,OS: linux/AIX。详细模式和tcpdump都证明了每个文件上传都会打开一个新的连接。另外,在url.c中也有这个部分。
/*
* IsPipeliningPossible() returns TRUE if the options set would allow
* pipelining/multiplexing and the connection is using a HTTP protocol.
*/
static bool