On 06/24/2015 03:58 PM, Paul Gilmartin wrote:
> On Wed, 24 Jun 2015 13:34:04 -0500, Janet Graff wrote:
> 
>> 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'
>>
> Well, RFC 959 mentions SITE, but not QUOTE.
> 
> And there I was about to blame it on Guido van Rossum's antipathy to EBCDIC.
> 
> -- gil
> 

Strictly speaking "QUOTE" is not a FTP protocol command but rather a
command to a local FTP client which by common convention sends the text
following the "QUOTE" to the remote FTP server as a command even though
its syntax can't be validated by the local client --  useful when
dealing with enhanced FTP server features not supported by a particular
FTP client, like conveying record-formatting SITE information to a z/OS
FTP server from a non-z/OS FTP client.  In the context shown, "QUOTE" is
apparently being sent as a command to the remote FTP server, where it is
indeed invalid.


-- 
Joel C. Ewing,    Bentonville, AR       [email protected] 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to