Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: 501 Server cannot accept argument

I do not see what does this question have to do with WinSCP.
You should better ask it elsewhere, maybe on
I also do not understand your second post. Afaik, FileZilla does not support FXP at all.

Please help me

FileZilla utility ftp1 <-> ftp2 communicates normally.

Please help me..

501 Server cannot accept argument

Please Help me...
import sys 
from ftpext.ftpext import FTPExt
source = FTPExt("", 21, "user1", "abc", False, False, 0)
target = FTPExt("", 21, "user2", "def", False, False, 0)
# upload(copy) "FTP://"  to  "/test"
source.fxp_to("FTP://", target, "FTP://", 'I')


Traceback (most recent call last):
File “c:\Users\abc\source\repos\”, line 8, in
source.fxp_to(“/test/test1.txt”, target, “/test”, ‘I’)
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\”, line 244, in fxp_to

target.sendport(host, host_port) <============= Error 501 Server cannot accept argument

File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\”, line 296, in sendport
return self.voidcmd(cmd)
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\”, line 286, in voidcmd
return self.voidresp()
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\”, line 259, in voidresp
resp = self.getresp()
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\”, line 123, in getresp
raise ftplib.error_perm(resp)
ftplib.error_perm: 501 Server cannot accept argument.