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.ext
gb.gui.qt.opengl
gb.gui.qt.webkit
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
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.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
.Curl.Proxy
.Curl.SSL
Curl
DictClient
FtpClient
HttpClient
HttpForm
Net
AbortedByCallback
Asynchronous
AuthAny
AuthAnySafe
AuthBasic
AuthDigest
AuthDigestIE
AuthGssNegotiate
AuthNone
AuthNtlm
AuthNtlmWb
BadContentEncoding
BadDownloadResume
BadFunctionArgument
ChunkFailed
ConvFailed
ConvRequired
FailedInit
FileSizeExceeded
FtpBadFileList
FtpPortFailed
FtpPretFailed
FtpUnableToGetHost
FtpUnableToRetrFile
FtpUnableToSetType
FtpUnableToUseRest
FtpWeird227Format
FtpWeirdPassReply
FtpWeirdPasvReply
FtpWeirdServerReply
FunctionNotFound
GotNothing
HttpPostError
HttpReturnedError
InterfaceFailed
LoginDenied
OperationTimeout
OutOfMemory
PartialFile
PeerFailedVerification
ProxyHTTP
ProxySocks5
QuoteError
RangeError
ReadError
RecvError
RemoteAccessDenied
RemoteDiskFull
RemoteFileExists
RemoteFileNotFound
SendError
SendFailRewind
SslCacert
SslCacertBadFile
SslCertProblem
SslCipher
SslConnectError
SslCrlBadfile
SslEngineInitFailed
SslEngineNotFound
SslEngineSetFailed
SslIssuerError
SslShutdownFailed
Synchronous
TooManyRedirects
UnableToConnect
UnableToResolveHost
UnableToResolveProxy
UnsupportedProtocol
UploadFailed
UrlMalformat
WriteError
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.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.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

Net (gb.net.curl)

This class contains important constants for use with gb.net.curl objects, especially the error code constants.

This class reimplements Net in gb.net.

This class is static.

Constants
AbortedByCallback   Aborted by callback. A callback returned "abort" to libcurl.
Asynchronous   A constant for the Async property.
AuthAny   This constant is used when any authentication method is possible.
AuthAnySafe   This constant represents any authentication method, except AuthBasic.
AuthBasic   This constant represents the Basic authentication method.
AuthDigest   This constant represents the Digest authentication method.
AuthDigestIE   This constant represents the Digest authentication method with an Internet Explorer flavor.
AuthGssNegotiate   This constant represents the Gss-Negotiate authentication method.
AuthNone   This constant is used when there is no authentication method.
AuthNtlm   This constant represents the NTLM authentication method.
AuthNtlmWb   This constant represents NTLM authentication delegated to winbind helper.
BadContentEncoding   Unrecognized transfer encoding.
BadDownloadResume   Attempting FTP resume beyond file size.
BadFunctionArgument   Internal error. A function was called with a bad parameter.
ChunkFailed   Chunk callback reported error.
ConvFailed   Character conversion failed.
ConvRequired   Caller must register conversion callbacks.
FailedInit   Very early initialization code failed.
FileSizeExceeded   Maximum file size exceeded.
FtpBadFileList   Unable to parse FTP file list (during FTP wildcard downloading).
FtpPortFailed   The FTP PORT command returned error. This mostly happens when you haven't specified a good enough address for libcurl to use.
FtpPretFailed   The FTP server does not understand the PRET command at all or does not support the given argument.
FtpUnableToGetHost   An internal failure to lookup the host used for the new connection.
FtpUnableToRetrFile   This was either a weird reply to a 'RETR' command or a zero byte transfer complete.
FtpUnableToSetType   Received an error when trying to set the transfer mode to binary or ASCII.
FtpUnableToUseRest   The FTP REST command returned error. This should never happen if the server is sane.
FtpWeird227Format   FTP servers return a 227-line as a response to a PASV command. If libcurl fails to parse that line, this return code is passed back.
FtpWeirdPassReply   After having sent the FTP password to the server, libcurl expects a proper reply. This error code indicates that an unexpected code was returned.
FtpWeirdPasvReply   libcurl failed to get a sensible result back from the server as a response to either a PASV or a EPSV command. The server is flawed.
FtpWeirdServerReply   After connecting to a FTP server, libcurl expects to get a certain reply back. This error code implies that it got a strange or bad reply. The given remote server is probably not an OK FTP server.
FunctionNotFound   Function not found. A required zlib function was not found.
GotNothing   Nothing was returned from the server, and under the circumstances, getting nothing is considered an error.
HttpPostError   This is an odd error that mainly occurs due to internal confusion.
HttpReturnedError   This is returned if the HTTP server returns an error code that is >= 400.
HttpVersion10  
HttpVersion11  
HttpVersion20  
HttpVersion2PriorKnowledge  
HttpVersion2Tls  
HttpVersion3  
HttpVersion3Only  
HttpVersionNone  
InterfaceFailed   Interface error. A specified outgoing interface could not be used.
LoginDenied   The remote server denied curl to login.
OperationTimeout   Operation timeout. The specified time-out period was reached according to the conditions.
OutOfMemory   A memory allocation request failed. This is serious badness and things are severely screwed up if this ever occurs.
PartialFile   A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.
PeerFailedVerification   The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK.
ProxyHTTP   This constant represents an HTTP proxy.
ProxySocks5   This constant represents a SOCKS5 proxy.
QuoteError   When sending custom "QUOTE" commands to the remote server, one of the commands returned an error code that was 400 or higher (for FTP) or otherwise indicated unsuccessful completion of the command.
RangeError   The server does not support or accept range requests.
ReadError   There was a problem reading a local file or an error returned by the read callback.
RecvError   Failure with receiving network data.
RemoteAccessDenied   We were denied access to the resource given in the URL.
RemoteDiskFull   Out of disk space on the server.
RemoteFileExists  
RemoteFileNotFound   The resource referenced in the URL does not exist.
SendError   Failed sending network data.
SendFailRewind   When doing a send operation curl had to rewind the data to retransmit, but the rewinding operation failed.
SslCacert   Peer certificate cannot be authenticated with known CA certificates.
SslCacertBadFile   Problem with reading the SSL CA cert (path? access rights?).
SslCertProblem   Problem with the local client certificate.
SslCipher   Couldn't use specified cipher.
SslConnectError   A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others.
SslCrlBadfile   Failed to load CRL file.
SslEngineInitFailed   Initiating the SSL Engine failed.
SslEngineNotFound   The specified crypto engine wasn't found.
SslEngineSetFailed   Failed setting the selected SSL crypto engine as default!
SslIssuerError   Issuer check failed.
SslShutdownFailed   Failed to shut down the SSL connection.
Synchronous   A constant for the Async property.
TooManyRedirects   Too many redirects. When following redirects, libcurl hit the maximum amount. Set your limit with CURLOPT_MAXREDIRS.
UnableToConnect   Failed to connect() to host or proxy.
UnableToResolveHost   Couldn't resolve host. The given remote host was not resolved.
UnableToResolveProxy   Couldn't resolve proxy. The given proxy host could not be resolved.
UnsupportedProtocol   The URL you passed to libcurl used a protocol that libcurl does not support. The support might be an unused compile-time option, it can be a misspelled protocol string or just a protocol libcurl has no code for.
UploadFailed   Failed starting the upload. For FTP, the server typically denied the STOR command. The error buffer usually contains the server's explanation for this.
UrlMalformat   The URL was not properly formatted.
WriteError   An error occurred when writing received data to a local file, or an error was returned to libcurl from a write callback.

Inherited constants
Accepting   This constant shows that a remote client is trying to connect with a server socket, and that the connection is being accepted.
Active   This constant shows that a network object is working at this moment.
CannotAuthenticate   Const CannotAuthenticate As Integer = -16
CannotBindInterface   This error constant means that binding a serversocket to a specific interface failed.
CannotBindSocket   This constant reflects that a network socket was unable to use (bind) to a port.
CannotCreateSocket   This constant reflects that a network object was unable to create a new socket, the system did not allow the operation to be performed.
CannotListen   This constant reflects that a server socket was unable to start listening on a TCP port or a local path.
CannotRead   This constant reflects that there was an error when trying to read data from a socket or a serial port.
CannotWrite   This constant shows that there was an error when trying to write data to a socket or a serial port.
Connected   This constant reflects that a socket, acting like a client, is currently connected to a remote server.
Connecting   This constant reflects that a socket, acting like a client, is trying to connect to a remote server.
ConnectionRefused   This constant reflects that a remote server refused a connection from a client socket.
ConnectionTimeout   This constant means that there was a connection timeout.
HostNotFound   This constant reflects that an object from one of the Net classes failed to translate a host name to an IP address.
IPv4   Constant used by Format for IPv4 addresses.
Inactive   This constant reflects that a network object is doing nothing, it is inactive.
Internet   Defines an Internet domain socket.
Local   Defines a local or an Unix domain socket.
Pending   This constant reflects that a remote client is trying to connect with a server socket, and that connection must be accepted or rejected.
ReceivingData   This constant means that some data is being downloaded from the network.
Searching   Reflects that an object from one of the Net classes is trying to translate a host name to an IP address.
Unix   Defines a local or Unix domain socket.

Inherited static methods
Format   Format a string that contains an IP address.