Back to product page

RawSend method


Sends raw data to the server.

Type

Void

Syntax

  • C#
  • VB.NET
public Void RawSend(String Data);
The RawSend(Data) syntax has these parts:
DataAny command or data to be sent to FTP server.

public Sub RawSend(ByVal Data As String)
The RawSend(Data) syntax has these parts:
DataAny command or data to be sent to FTP server.

Remarks

RawSend method can be used only with FTP style protocol - FTP and FTPS. It can be used to 'inject' specific command or data anytime during session lifetime, to override or adjust behavior of wodFtpDLX. For example, you can get current path on the server just by issuing PWD command.

Make sure you always use vbCrLf (13+10) sequence after you send data - so that server knows it's actually a command you want to execute. If you don't send it, server will not act on your command, and will wait more data to arrive.

After this command is executed, Done event will fire. It will *always* have Args.Error to reply code returned from the server, and Args.Description with replied text received from the server. You can also check what this method returns through FTPReplyEvent event.

Platforms

Windows