Platforms to show: All Mac Windows Linux Cross-Platform
CURLSURLMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CURL | MBS CURL Plugin | 18.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
- 14 properties
- property Flags as Integer
- property Fragment as String
- property Handle as Integer
- property Host as String
- property Lasterror as Integer
- property Options as String
- property Password as String
- property Path as String
- property Port as String
- property Query as String
- property Scheme as String
- property URL as String
- property User as String
- property ZoneID as String
- 2 methods
- method Clone as CURLSURLMBS
- method Constructor
- 47 constants
Constants
Constant | Value | Description |
---|---|---|
kFlagsNoAuthority | 1024 |
Allow URLs without authority.
Allow empty authority when the scheme is unknown. |
kFlagsNoGuessScheme | 32768 |
One of the flags.
For get, do not accept a guess. |
Error Constants
Constant | Value | Description |
---|---|---|
kErrorBadFileURL | 19 |
The file:// URL is invalid. |
kErrorBadFragment | 20 |
The fragment part of the URL contained bad or invalid characters. |
kErrorBadHostname | 21 |
The hostname contained bad or invalid characters. |
kErrorBadIPv6 | 22 |
The IPv6 address hostname contained bad or invalid characters. |
kErrorBadLogin | 23 |
The login part of the URL contained bad or invalid characters. |
kErrorBadPassword | 24 |
The password part of the URL contained bad or invalid characters. |
kErrorBadPath | 25 |
The path part of the URL contained bad or invalid characters. |
kErrorBadQuery | 26 |
The query part of the URL contained bad or invalid characters. |
kErrorBadScheme | 27 |
The scheme part of the URL contained bad or invalid characters. |
kErrorBadSlashes | 28 |
The URL contained an invalid number of slashes. |
kErrorBadUser | 29 |
The user part of the URL contained bad or invalid characters. |
kErrorNoZoneID | 18 |
There is no zoneid set in the URL. |
Error Codes
Constant | Value | Description |
---|---|---|
kErrorBadHandle | 1 |
An argument that should be a CURLU pointer was passed in as a NULL. Should never happen with plugin as you would get exception. |
kErrorBadPartpointer | 2 |
A NULL pointer was passed to the 'part' argument of curl_url_get. Should never happen with plugin as you would get exception. |
kErrorBadPortNumber | 4 |
The port number was not a decimal number between 0 and 65535. |
kErrorLacksIDN | 30 |
IDN missing. |
kErrorMalformedInput | 3 |
A malformed input was passed to a URL API function. |
kErrorNoFragment | 17 |
There is no fragment part in the URL. |
kErrorNoHost | 14 |
There is no host part in the URL. |
kErrorNoOptions | 13 |
There is no options part in the URL. |
kErrorNoPassword | 12 |
There is no password part in the URL. |
kErrorNoPort | 15 |
There is no port part in the URL. |
kErrorNoQuery | 16 |
There is no query part in the URL. |
kErrorNoScheme | 10 |
There is no scheme part in the URL. |
kErrorNoUser | 11 |
There is no user part in the URL. |
kErrorOk | 0 |
No error. |
kErrorOutOfMemory | 7 |
A memory function failed. |
kErrorUnknownPart | 9 |
An unknown part ID was passed to a URL API function. |
kErrorUnsupportedScheme | 5 |
This libcurl build doesn't support the given URL scheme. |
kErrorUrlDecode | 6 | |
kErrorUserNotAllowed | 8 |
Credentials was passed in the URL when prohibited. |
Flags
Constant | Value | Description |
---|---|---|
kFlagsAllowSpace | 2048 |
Whether to allow space character in URLs. |
kFlagsAppendQuery | 256 |
Append a form style part. |
kFlagsDefaultPort | 1 |
Return default port number. |
kFlagsDefaultScheme | 4 |
Return default scheme if missing. |
kFlagsDisallowUser | 32 |
No user+password allowed. |
kFlagsGetEmpty | 16384 |
Allow empty queries and fragments when extracting the URL or the components. |
kFlagsGuessScheme | 512 |
Legacy curl-style guessing. |
kFlagsNoDefaultPort | 2 |
Act as if no port number was set, if the port number matches the default for the scheme. |
kFlagsNonSupportScheme | 8 |
Allow non-supported scheme. |
kFlagsPathAsIs | 16 |
Leave dot sequences. |
kFlagsPuny2IDN | 8192 |
Whether to do punycode to IDN conversion |
kFlagsPunyCode | 4096 |
get the host name in pynycode |
kFlagsURLDecode | 64 |
URL decode on get. |
kFlagsURLEncode | 128 |
URL encode on set. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 19.3pr1
- MBS Xojo Plugins, version 19.2pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.5
- MBS Xojo Plugins, version 18.5pr5
Xojo Developer Magazine
Videos
Release notes
- Version 19.3
- Added ZoneID property for CURLSURLMBS class.
- Version 19.2
- Fixed memory leak in CURLSURLMBS class.
- Version 18.5
- Added CURLSURLMBS class.
The items on this page are in the following plugins: MBS CURL Plugin.
CURLSSSLBackendMBS - CURLSVersionMBS