Try using:
FTP.sendcmd(cmd)
Send a simple command string to the server and return the response string.
FTP.voidcmd(cmd)
Send a simple command string to the server and handle the response. Return
nothing if a response code corresponding to success (codes in the range
200–299) is received. Raise error_reply otherwise.
Where "cmd" is "SITE RECFM=FM LRECL=80 BLKSIZE=3200"
Al Nims
Systems Admin/Programmer 3
Information Technology
University of Florida
(352) 273-1298
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Janet Graff
Sent: Wednesday, June 24, 2015 2:34 PM
To: [email protected]
Subject: Re: Python FTP binary object file upload
Sadly, python rejected the quote prefix for the site command.
*cmd* 'QUOTE SITE RECFM=FM LRECL=80 BLKSIZE=3200'
*put* 'QUOTE SITE RECFM=FM LRECL=80 BLKSIZE=3200'\r\n
*get* '500 unknown command QUOTE'
*resp* '500 unkown command QUOTE'
Janet
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN