Jump to content


Photo

Messed up commands giving 500 responses?


  • Please log in to reply
2 replies to this topic

#1 Craig

Craig
  • Members
  • 16 posts

Posted 10 March 2006 - 06:24 PM

I have a user who's having a problem with the sent commands getting garbled, which ends up with the server sending back "500 command not understood" responses. I'm using sfFTPLib.dll v 1.5.7.20 right now and it exhibits the problem, and I had him try SmartFTP and he said it doesn't. Any idea what's going on and is it something I can fix?

Thanks,
Craig

3/8/2006 9:50:29 PM Stat> Resolving host name "ftp.###.com"
3/8/2006 9:50:29 PM Stat> Connecting to ###.###.###.### Port: 21
3/8/2006 9:50:29 PM Stat> Connected to ftp.###.com.
3/8/2006 9:50:29 PM Recv> 220-Microsoft FTP Service
3/8/2006 9:50:29 PM Recv> 220 ######### (Customer FTP)
3/8/2006 9:50:29 PM Sent> USER ########
3/8/2006 9:50:30 PM Recv> 331 Password required for #########.
3/8/2006 9:50:30 PM Sent> PASS ########
3/8/2006 9:50:31 PM Recv> 230 User ######## logged in.
3/8/2006 9:50:31 PM Sent> SYST
3/8/2006 9:50:31 PM Recv> 215 Windows_NT
3/8/2006 9:50:31 PM Sent> FEAT
3/8/2006 9:50:31 PM Recv> 211-FEAT
3/8/2006 9:50:31 PM Recv> SIZE
3/8/2006 9:50:31 PM Recv> MDTM
3/8/2006 9:50:31 PM Recv> 211 END
3/8/2006 9:50:31 PM Sent> TYPE I
3/8/2006 9:50:31 PM Recv> 200 Type set to I.
3/8/2006 9:50:31 PM Sent> REST 0
3/8/2006 9:50:31 PM Recv> 350 Restarting at 0.
3/8/2006 9:50:31 PM Sent> PWD
3/8/2006 9:50:31 PM Recv> 257 "/" is current directory.
3/8/2006 9:50:31 PM Sent> CWD www
3/8/2006 9:50:31 PM Recv> 250 CWD command successful.
3/8/2006 9:50:31 PM Sent> PWD
3/8/2006 9:50:32 PM Recv> 257 "/www" is current directory.
3/8/2006 9:50:32 PM Sent> PORT ###,##,#,##,4,200
3/8/2006 9:50:32 PM Recv> 200 PORT command successful.
3/8/2006 9:50:32 PM Sent> LIST
3/8/2006 9:50:32 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:32 PM Stat> 2366 bytes transferred. (77.0 KB/s) (30 ms)
3/8/2006 9:50:32 PM Recv> 226 Transfer complete.
3/8/2006 9:50:32 PM Sent> PORT ###,##,#,##,4,202
3/8/2006 9:50:32 PM Recv> 200 PORT command successful.
3/8/2006 9:50:32 PM Sent> LIST
3/8/2006 9:50:32 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:32 PM Stat> 2366 bytes transferred. (115 KB/s) (20 ms)
3/8/2006 9:50:32 PM Recv> 226 Transfer complete.
3/8/2006 9:50:32 PM Sent> CWD /www/12
3/8/2006 9:50:32 PM Recv> 250 CWD command successful.
3/8/2006 9:50:32 PM Sent> PWD
3/8/2006 9:50:33 PM Recv> 257 "/www/12" is current directory.
3/8/2006 9:50:33 PM Sent> PORT ###,##,#,##,4,204
3/8/2006 9:50:33 PM Recv> 200 PORT command successful.
3/8/2006 9:50:33 PM Sent> LIST
3/8/2006 9:50:33 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:33 PM Stat> 829 bytes transferred. (26.9 KB/s) (30 ms)
3/8/2006 9:50:33 PM Recv> 226 Transfer complete.
3/8/2006 9:50:33 PM Sent> PORT ###,##,#,##,4,206
3/8/2006 9:50:33 PM Recv> 200 PORT command successful.
3/8/2006 9:50:33 PM Sent> LIST
3/8/2006 9:50:33 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:33 PM Stat> 829 bytes transferred. (80.9 KB/s) (10 ms)
3/8/2006 9:50:33 PM Recv> 226 Transfer complete.
3/8/2006 9:50:33 PM Sent> CWD /www/12/humor
3/8/2006 9:50:34 PM Recv> 250 CWD command successful.
3/8/2006 9:50:34 PM Sent> PWD
3/8/2006 9:50:34 PM Recv> 257 "/www/12/humor" is current directory.
3/8/2006 9:50:34 PM Sent> PORT ###,##,#,##,4,208
3/8/2006 9:50:34 PM Recv> 200 PORT command successful.
3/8/2006 9:50:34 PM Sent> LIST
3/8/2006 9:50:34 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:34 PM Stat> 265 bytes transferred. (12.9 KB/s) (20 ms)
3/8/2006 9:50:34 PM Recv> 226 Transfer complete.
3/8/2006 9:50:34 PM Sent> PORT ###,##,#,##,4,210
3/8/2006 9:50:34 PM Recv> 200 PORT command successful.
3/8/2006 9:50:34 PM Sent> LIST
3/8/2006 9:50:34 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:34 PM Stat> 265 bytes transferred. (25.8 KB/s) (10 ms)
3/8/2006 9:50:34 PM Recv> 226 Transfer complete.
3/8/2006 9:50:34 PM Sent> CWD /www/12/Sundowners
3/8/2006 9:50:35 PM Recv> 250 CWD command successful.
3/8/2006 9:50:35 PM Sent> PWD
3/8/2006 9:50:35 PM Recv> 257 "/www/12/Sundowners" is current directory.
3/8/2006 9:50:35 PM Sent> PORT ###,##,#,##,4,212
3/8/2006 9:50:35 PM Recv> 200 PORT command successful.
3/8/2006 9:50:35 PM Sent> LIST
3/8/2006 9:50:35 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:35 PM Stat> 558 bytes transferred. (27.2 KB/s) (20 ms)
3/8/2006 9:50:35 PM Recv> 226 Transfer complete.
3/8/2006 9:50:35 PM Sent> PORT ###,##,#,##,4,214
3/8/2006 9:50:35 PM Recv> 200 PORT command successful.
3/8/2006 9:50:35 PM Sent> LIST
3/8/2006 9:50:35 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:35 PM Stat> 558 bytes transferred. (13.6 KB/s) (40 ms)
3/8/2006 9:50:35 PM Recv> 226 Transfer complete.
3/8/2006 9:50:35 PM Sent> CWD /www/blog
3/8/2006 9:50:36 PM Recv> 250 CWD command successful.
3/8/2006 9:50:36 PM Sent> PWD
3/8/2006 9:50:36 PM Recv> 257 "/www/blog" is current directory.
3/8/2006 9:50:36 PM Sent> PORT ###,##,#,##,4,216
3/8/2006 9:50:36 PM Recv> 200 PORT command successful.
3/8/2006 9:50:36 PM Sent> LIST
3/8/2006 9:50:36 PM Recv> 150 Opening BINARY mode data connection for /bin/ls.
3/8/2006 9:50:36 PM Stat> 141 bytes transferred. (N/A/s) (0 ms)
3/8/2006 9:50:36 PM Recv> 226 Transfer complete.
3/8/2006 9:50:36 PM Sent> PORT ###,##,#,##,4,218
3/8/2006 9:50:36 PM Recv> 200 PORT command successful.
3/8/2006 9:50:36 PM Sent> LIST
3/8/2006 9:50:36 PM Recv> 500 'T': command not understood
3/8/2006 9:50:36 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:36 PM Sent> CWD /www/cgi
3/8/2006 9:50:37 PM Recv> 500 'T': command not understood
3/8/2006 9:50:37 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:37 PM Sent> CWD /www/Communities
3/8/2006 9:50:37 PM Recv> 250 CWD command successful.
3/8/2006 9:50:37 PM Sent> PWD
3/8/2006 9:50:37 PM Recv> 257 "/www/Communities" is current directory.
3/8/2006 9:50:37 PM Sent> PORT ###,##,#,##,4,220
3/8/2006 9:50:37 PM Recv> 200 PORT command successful.
3/8/2006 9:50:37 PM Sent> LIST
3/8/2006 9:50:37 PM Recv> 500 'T': command not understood
3/8/2006 9:50:37 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:37 PM Sent> CWD /www/dev
3/8/2006 9:50:38 PM Recv> 250 CWD command successful.
3/8/2006 9:50:38 PM Sent> PWD
3/8/2006 9:50:38 PM Recv> 500 'V': command not understood
3/8/2006 9:50:38 PM FTP error: 500 'V': command not understood
3/8/2006 9:50:38 PM Sent> CWD /www/devinfo
3/8/2006 9:50:38 PM Recv> 250 CWD command successful.
3/8/2006 9:50:38 PM Sent> PWD
3/8/2006 9:50:38 PM Recv> 257 "/www/devinfo" is current directory.
3/8/2006 9:50:38 PM Sent> PORT ###,##,#,##,4,222
3/8/2006 9:50:39 PM Recv> 200 PORT command successful.
3/8/2006 9:50:39 PM Sent> LIST
3/8/2006 9:50:39 PM Recv> 500 'T': command not understood
3/8/2006 9:50:39 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:39 PM Sent> CWD /www/family
3/8/2006 9:50:39 PM Recv> 250 CWD command successful.
3/8/2006 9:50:39 PM Sent> PWD
3/8/2006 9:50:40 PM Recv> 500 'Y': command not understood
3/8/2006 9:50:40 PM FTP error: 500 'Y': command not understood
3/8/2006 9:50:40 PM Sent> CWD /www/geekery
3/8/2006 9:50:40 PM Recv> 250 CWD command successful.
3/8/2006 9:50:40 PM Sent> PWD
3/8/2006 9:50:40 PM Recv> 257 "/www/geekery" is current directory.
3/8/2006 9:50:40 PM Sent> PORT ###,##,#,##,4,224
3/8/2006 9:50:40 PM Recv> 200 PORT command successful.
3/8/2006 9:50:40 PM Sent> LIST
3/8/2006 9:50:40 PM Recv> 500 'T': command not understood
3/8/2006 9:50:40 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:40 PM Sent> CWD /www/greg
3/8/2006 9:50:41 PM Recv> 250 CWD command successful.
3/8/2006 9:50:41 PM Sent> PWD
3/8/2006 9:50:42 PM Recv> 500 'G': command not understood
3/8/2006 9:50:42 PM FTP error: 500 'G': command not understood
3/8/2006 9:50:42 PM Sent> CWD /www/gretchen
3/8/2006 9:50:42 PM Recv> 250 CWD command successful.
3/8/2006 9:50:42 PM Sent> PWD
3/8/2006 9:50:42 PM Recv> 257 "/www/gretchen" is current directory.
3/8/2006 9:50:42 PM Sent> PORT ###,##,#,##,4,226
3/8/2006 9:50:42 PM Recv> 200 PORT command successful.
3/8/2006 9:50:42 PM Sent> LIST
3/8/2006 9:50:42 PM Recv> 500 'T': command not understood
3/8/2006 9:50:42 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:42 PM Sent> CWD /www/humor
3/8/2006 9:50:43 PM Recv> 250 CWD command successful.
3/8/2006 9:50:43 PM Sent> PWD
3/8/2006 9:50:43 PM Recv> 500 'R': command not understood
3/8/2006 9:50:43 PM FTP error: 500 'R': command not understood
3/8/2006 9:50:43 PM Sent> CWD /www/info
3/8/2006 9:50:44 PM Recv> 250 CWD command successful.
3/8/2006 9:50:44 PM Sent> PWD
3/8/2006 9:50:44 PM Recv> 257 "/www/info" is current directory.
3/8/2006 9:50:44 PM Sent> PORT ###,##,#,##,4,228
3/8/2006 9:50:44 PM Recv> 200 PORT command successful.
3/8/2006 9:50:44 PM Sent> LIST
3/8/2006 9:50:44 PM Recv> 500 'T': command not understood
3/8/2006 9:50:44 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:44 PM Sent> CWD /www/lib
3/8/2006 9:50:45 PM Recv> 250 CWD command successful.
3/8/2006 9:50:45 PM Sent> PWD
3/8/2006 9:50:47 PM Recv> 257 "/www/lib" is current directory.
3/8/2006 9:50:47 PM Sent> PORT ###,##,#,##,4,230
3/8/2006 9:50:47 PM Recv> 500 'D': command not understood
3/8/2006 9:50:47 PM FTP error: 500 'D': command not understood
3/8/2006 9:50:47 PM Sent> CWD /www/media
3/8/2006 9:50:47 PM Recv> 500 ' /www/media': command not understood
3/8/2006 9:50:47 PM FTP error: 500 ' /www/media': command not understood
3/8/2006 9:50:47 PM Sent> CWD /www/priv
3/8/2006 9:50:48 PM Recv> 250 CWD command successful.
3/8/2006 9:50:48 PM Sent> PWD
3/8/2006 9:50:48 PM Recv> 500 'V': command not understood
3/8/2006 9:50:48 PM FTP error: 500 'V': command not understood
3/8/2006 9:50:48 PM Sent> CWD /www/ra
3/8/2006 9:50:49 PM Recv> 250 CWD command successful.
3/8/2006 9:50:49 PM Sent> PWD
3/8/2006 9:50:49 PM Recv> 257 "/www/ra" is current directory.
3/8/2006 9:50:49 PM Sent> PORT ###,##,#,##,4,232
3/8/2006 9:50:49 PM Recv> 200 PORT command successful.
3/8/2006 9:50:49 PM Sent> LIST
3/8/2006 9:50:49 PM Recv> 500 'T': command not understood
3/8/2006 9:50:49 PM FTP error: 500 'T': command not understood
3/8/2006 9:50:49 PM Sent> CWD /www/ra_backup
3/8/2006 9:50:49 PM Recv> 250 CWD command successful.
3/8/2006 9:50:49 PM Sent> PWD
3/8/2006 9:50:50 PM Recv> 257 "/www/ra_backup" is current directory.
3/8/2006 9:50:50 PM Sent> PORT ###,##,#,##,4,234
3/8/2006 9:50:51 PM Recv> 500 'D': command not understood
3/8/2006 9:50:51 PM FTP error: 500 'D': command not understood
3/8/2006 9:50:51 PM Sent> CWD /www/sked
3/8/2006 9:50:51 PM Recv> 500 ' /www/sked': command not understood
3/8/2006 9:50:51 PM FTP error: 500 ' /www/sked': command not understood
3/8/2006 9:50:51 PM Sent> CWD /www/SRG
3/8/2006 9:50:51 PM Recv> 250 CWD command successful.
3/8/2006 9:50:51 PM Sent> PWD
3/8/2006 9:50:52 PM Recv> 500 'G': command not understood
3/8/2006 9:50:52 PM FTP error: 500 'G': command not understood



#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 10 March 2006 - 07:30 PM

Tell your customer to capture the network traffic with ethereal.
http://www.ethereal.com/

I don't think the bug is in the FTP library itself.

Regards,
-Mat

#3 eyebex

eyebex
  • Licensed User
  • 1860 posts
  • Gender:
    Male

Posted 11 March 2006 - 08:19 AM

Here's an Ethereal-clone which might be a little bit easier to use for Windows users:
http://www.networkch.../packetyzer.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users