M
Martin Robins
I know this is not really the right forum for this topic, but I figured
there are a lot of people here who may be able to provide me with an answer
to my question so I would give it a try.
About a year ago I wrote an FTP client in C#. It supported only 'Active'
mode as that was my requirement at the time; however I now need to support
'Passive' mode.
From what I can see, this simply means that you ask the server for the
details of the port to which the data connection should be made by using the
PASV command and then open an outbound connection to the server on the port
specified to transfer data across. Nothing else changes.
I have done this, and to a certain extent it works. I issue the PASV
command, open a connection to the port specified by the server and send the
data. I then close the connection. At this point, I get a 426 error,
Connection Closed, transfer aborted.
I figure I am missing something but cannot fathom what it is. Should I be
sending any additional messages to the server to indicate that the transfer
is complete?
Any help will be gratefully accepted.
Thanks.
there are a lot of people here who may be able to provide me with an answer
to my question so I would give it a try.
About a year ago I wrote an FTP client in C#. It supported only 'Active'
mode as that was my requirement at the time; however I now need to support
'Passive' mode.
From what I can see, this simply means that you ask the server for the
details of the port to which the data connection should be made by using the
PASV command and then open an outbound connection to the server on the port
specified to transfer data across. Nothing else changes.
I have done this, and to a certain extent it works. I issue the PASV
command, open a connection to the port specified by the server and send the
data. I then close the connection. At this point, I get a 426 error,
Connection Closed, transfer aborted.
I figure I am missing something but cannot fathom what it is. Should I be
sending any additional messages to the server to indicate that the transfer
is complete?
Any help will be gratefully accepted.
Thanks.