Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
RawSend method
Sends raw data to the server.
Type
VoidSyntax
- C#
- VB.NET
public Void RawSend(String Data);
The RawSend(Data) syntax has these parts:
The RawSend(Data) syntax has these parts:
Data | Any command or data to be sent to FTP server. |
public Sub RawSend(ByVal Data As String)
The RawSend(Data) syntax has these parts:
The RawSend(Data) syntax has these parts:
Data | 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.
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.