I'm working with ColdFusion MX 2004. Currently I'm trying to use CFFTP to go
out to my production web server (running Serv-U for the FTP server) and
retrieve a listing of directories and files. I can connect to my remote server,
and initiate the LIST command, but for some reason I get a "data transfer
aborted". This makes ColdFusion stop and report a "connection closed by peer"
error (I have stoponerror="yes").

I've checked the FTP connection using various FTP clients, including the
text-based one built into Windows 2000, and Deluxe FTP
([url]http://www.deluxeftp.com/[/url]). Both can successfully login with the same username
and password and get the file list.

I'm at a loss. I went looking for "CFX_FTP", but can't find a copy to
download. I've seen the other threads that talk about CFFTP getting stuck if
the file list is too long. That's not the case here - I'm only trying to get
one that is about 20 lines long, all directories. I've also tried just logging
into my personal web server using CFFTP, and still no go. When I use the
aforementioned FTP clients, however, everything works fine.

All I'm using is this:

<CFFTP action="open"
username="#ftp_user_temp#"
password="#ftp_pass_temp#"
server="#ftp_server_temp#"
port="#ftp_port_temp#"
connection="test_connection"
passive="yes"
stoponerror="no">

<CFSET ftp_success_a = cfftp.succeeded>

<CFFTP action="LISTDIR"
stoponerror="no"
name="test_directory"
directory=""
connection="test_connection"
retrycount="5">

This same code works just fine when used to access servers inside the
firewall. What am I missing here?

Any and all help would be greatly appreciated. If you with to email me
directly, feel free to do so at [email]cthoma@cityofsacramento.org[/email]. Thanks!

Respectfully,
Chris