[Patches] [ python-Patches-1359217 ] ftplib transfer problem with certain servers

SourceForge.net noreply at sourceforge.net
Sat Nov 19 06:45:48 CET 2005


Patches item #1359217, was opened at 2005-11-17 14:14
Message generated for change (Comment added) made by customdesigned
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1359217&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart D. Gathman (customdesigned)
Assigned to: Nobody/Anonymous (nobody)
>Summary: ftplib transfer problem with certain servers

Initial Comment:
Gets error_reply exception: 200 Command Ok
Some ftp servers return a 2xx response before returning a
1xx response to begin transfer. I don't know whether
such servers are in error.  The C ftp client
(netkit-ftp-0.17) handles this case.  

----------------------------------------------------------------------

>Comment By: Stuart D. Gathman (customdesigned)
Date: 2005-11-19 00:45

Message:
Logged In: YES 
user_id=142072

Examples of patch in action, list command:
*cmd* 'PASV'
*put* 'PASV\r\n'
*get* '227 Entering Passive Mode (204,90,130,189,158,118)\r\n'
*resp* '227 Entering Passive Mode (204,90,130,189,158,118)'
*cmd* 'LIST'
*put* 'LIST\r\n'
*get* '200 Command Okay.\r\n'
*resp* '200 Command Okay.'
*get* '150 Opening data connection for transfer.\r\n'
*resp* '150 Opening data connection for transfer.'
*get* '226-Closing data connection - action successful.\r\n'
*get* '\tList command OK, SNRF: 051118183485S0\r\n'
*get* '226 \r\n'
*resp* '226-Closing data connection - action
successful.\n\tList command OK, SNRF: 051118183485S0\n226 '

Store command:
*cmd* 'PASV'
*put* 'PASV\r\n'
*get* '227 Entering Passive Mode (204,90,130,189,138,35)\r\n'
*resp* '227 Entering Passive Mode (204,90,130,189,138,35)'
*cmd* 'STOR /bms/edi/send/051118.dat'
*put* 'STOR /bms/edi/send/051118.dat\r\n'
*get* '200 Command Okay.\r\n'
*resp* '200 Command Okay.'
*get* '150 Opening data connection for transfer.\r\n'
*resp* '150 Opening data connection for transfer.'
*get* '226-Closing data connection - action successful.\r\n'


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1359217&group_id=5470


More information about the Patches mailing list