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
AuthAny
This constant is used when any authentication method is possible.
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.
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.
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.
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.
HttpVersion20
Attempt HTTP 2 requests. libcurl falls back to HTTP 1.1 if HTTP 2 cannot be negotiated with the server. (Added in 7.33.0)
HttpVersion2PriorKnowledge
Issue non-TLS HTTP requests using HTTP/2 without HTTP/1.1 Upgrade. It requires prior knowledge that the server supports HTTP/2 straight away. HTTPS requests still do HTTP/2 the standard way with negotiated protocol version in the TLS handshake. (Added in 7.49.0)
HttpVersion2Tls
Attempt HTTP 2 over TLS (HTTPS) only. libcurl falls back to HTTP 1.1 if HTTP 2 cannot be negotiated with the HTTPS server. For clear text HTTP servers, libcurl uses 1.1. (Added in 7.47.0)
HttpVersion3
This option makes libcurl attempt to use HTTP/3 to the host given in the URL, with fallback to earlier HTTP versions if needed. (Added in 7.66.0)
HttpVersion3Only
Setting this makes libcurl attempt to use HTTP/3 directly to server given in the URL and does not downgrade to earlier HTTP version if the server does not support HTTP/3. (Added in 7.88.0)
HttpVersionNone
We do not care about what HTTP version the library uses. libcurl uses whatever it thinks fit.
InterfaceFailed
Interface error. A specified outgoing interface could not be used.
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.
ProxyHTTP
This constant represents an HTTP 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.
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.
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.
TooManyRedirects
Too many redirects. When following redirects, libcurl hit the maximum amount. Set your limit with CURLOPT_MAXREDIRS.
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.
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.
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.
HostNotFound
This constant reflects that an object from one of the
Net classes failed to translate a host name to an IP address.
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.
Enumerations
Inherited enumerations
Inherited static methods
Format
Format a string that contains an IP address.