Patches item #1359217, was opened at 2005-11-17 20:14 Message generated for change (Comment added) made by loewis 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: Closed >Resolution: Accepted Priority: 5 Private: No 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: Martin v. Löwis (loewis) Date: 2006-11-12 19:49 Message: Logged In: YES user_id=21627 Thanks for the patch. Committed (with modificiations) as r52739 and r52740. ---------------------------------------------------------------------- Comment By: Stuart D. Gathman (customdesigned) Date: 2005-11-19 06: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 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches