Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.stock
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk.opengl
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.opengl
gb.gui.qt
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.jit
gb.libxml
gb.logging
gb.map
gb.markdown
gb.media
gb.media.form
gb.memcached
gb.mime
gb.mysql
gb.ncurses
gb.net
gb.net.curl
.Curl.Proxy
.Curl.SSL
Curl
FtpClient
_new
Exec
Get
NoEPSV
Put
Stop
HttpClient
HttpForm
Net
gb.net.pop3
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webkit
gb.qt5.webview
gb.report
gb.report2
gb.scanner
gb.sdl
gb.sdl.sound
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual
ar
ca
cs
de
en
eo
es
fa
fr
hu
id
it
ja
ko
mk
nl
pl
pt
pt_BR
ru
sq
tr
vi
zh
zh_TW
FtpClient (gb.net.curl)
This class provides a FTP client that allows to download files, upload files, and send custom commands to a FTP server.
This class inherits
Curl
.
This class is
Creates a new FTP client.
creatable
.
Static properties
Return or set default proxy of all newly created
HttpClient
objects.
DefaultProxy
Properties
Methods
Events
Returns or sets whether the FTP/HTTP request will be asynchronous.
Async
Returns or sets if the stream is blocking.
Blocking
Return or set the preferred receive buffer size, between 0 and 512 KB.
BufferSize
Returns or sets the byte order used to read or write binary data to the stream.
ByteOrder
Return or set the debugging mode.
Debug
Return the number of bytes that have been downloaded.
Downloaded
This property signals whether the last use of
LINE INPUT
reached the end of file, instead of reading a full line with an end-of-line character.
EndOfFile
Return or set the newline separator used by this stream.
EndOfLine
Return if a stream reached its end.
Eof
Return the error string associated with the error code returned by the curl library.
ErrorText
Returns the system file descriptor associated with this
Stream
.
Handle
Return if a stream is associated with a terminal.
IsTerm
Returns a virtual object that allows you to enumerate a stream line by line.
Lines
Return or set if the
FtpClient
can or cannot use EPSV when doing passive FTP downloads.
NoEPSV
Return or set if strings are null-terminated when they are serialized.
NullTerminatedString
Returns or sets the password used for authorization.
Password
Returns a virtual object used for defining proxy parameters.
Proxy
This virtual property allows to define the SSL properties of the CURL connection.
SSL
Returns the status of the client.
Status
Returns or sets the tag associated with the stream.
Tag
Return or set the target file used for download operations.
TargetFile
Return a virtual object that allows to manage the terminal associated with the stream.
Term
Returns or sets the client timeout in seconds.
Timeout
Returns the total number of bytes that are expected to be downloaded.
TotalDownloaded
Returns the total number of bytes that are expected to be uploaded.
TotalUploaded
Return or set the URL of the resource to download.
URL
Return the number of bytes that have been uploaded.
Uploaded
Returns or sets the user used for authorisation.
User
Start to buffer data written to the stream, so that everything will be sent when the
Send
method is called.
Begin
Closes the stream.
Close
Drop the data that has been buffered since the last call to the
Begin
method.
Drop
Execute specific FTP commands.
Exec
Retrieve a file from the FTP server.
Get
Returns the contents of the internal stream buffer.
Peek
Send a file to the FTP server.
Put
Read a line of text from the stream, like the
LINE INPUT
instruction.
ReadLine
Send all the data, in one shot, since the last call to
Begin
.
Send
Abort the current command.
Stop
Start or stop watching the stream file descriptor for reading or writing, after it has been opened.
Watch
This event is raised when a request has been cancelled.
Cancel
Raised when the connection is established.
Connect
Raised when there was an error returned by the CURL library.
Error
Raised when a command terminates correctly.
Finished
This event is raised periodically when something is downloaded or uploaded.
Progress
Raised when there is some data received.
Read