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
Function: The class for CURL's URL parser.
Example:
dim c as new CURLSURLMBS

c.URL = "www.test.de/Hello World test.pdf"

// setting URL will repair the spaces
c.path = c.Path

MsgBox c.URL

Feedback, Comments & Corrections

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.
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.
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.
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

Xojo Developer Magazine

Videos


The items on this page are in the following plugins: MBS CURL Plugin.


CURLSSSLBackendMBS   -   CURLSVersionMBS

The biggest plugin in space...




Links
MBS FileMaker Plugins

Start Chat