Back to product page

RawSend method


Sends raw data to the server.

Type

None

Syntax

  • Basic
object.RawSend Data
The RawSend(object,Data) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
DataRequired. A String value. Any 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.

This method will block if Blocking property is set to True. If you want to check server's reply, you should check what it returns using FTPReply event.

Platforms

Windows