Topic "How to use WinSCP as a really dumb command-line FTP client"

Author Message
Patrick O'Keefe
[View user's profile]

Joined: 2016-09-04
Posts: 2
Location: Seattle, WA USA
I apologize if this is a duplicate post. I think my first attempt at posting went into the bit bucket.

I'm trying to diagnose a problem between a backup product and an FTP server. I want to duplicate the command flow so need absolute control over the commands sent by the client. I thought I could use WinSCP.com, but so far it is too smart. It logs me onto the server before I'm ready and (I think) will not switch between active and passive mode on command.

What I want to do is:
Open an FTP connection to the server.
Issue the FEAT command and look at the response.
Issue the USER command.
Issue the PASS command.
Issue some PWD and MKD commands
Issue the PASV command

Then I want to break the connection and try again with the PASV entered earlier.

In other words, I don't want the client to send anything unless and until I tell it. It can translate UI commands to FTP commands - I don't care if I give the UI "PASV" or "Passive" so long as I control when it sends PASV.

Is it possible to dumb-down WinSCP to this level or do I need to find another client? (The built-in Windows FTP client doesn't support passive mode. It's a bit too dumb.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
No, WinSCP cannot do that.

You are actually not looking for an FTP client.
All you need is to open TCP connection to the FTP server and feed the commands yourself.

Thought, if it helps, there's an FTP client that mimics the Windows ftp.exe, but supports the passive mode:
http://passive-ftp.com/
Patrick O'Keefe
[View user's profile]

Joined: 2016-09-04
Posts: 2
Location: Seattle, WA USA
martin wrote:
No, WinSCP cannot do that.


I was afraid of that.

martin wrote:

You are actually not looking for an FTP client.
All you need is to open TCP connection to the FTP server and feed the commands yourself.

Well, not quite. If I could remember how to handle the data connection in both active and passive modes, remember which display commands use the data connection, want to handle the retrieval and storage of data for data transfers (if I get that far in this test), then yes, I could do it all myself. But I know my capabilities. I need an FTP client - a dumb one, but a client non the less.

martin wrote:

Thought, if it helps, there's an FTP client that mimics the Windows ftp.exe, but supports the passive mode:
http://passive-ftp.com/


Thanks. I'll look into that.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License