◆ parseURL()
Parses an URL string by calling curl_url_set Must be used before using other methods.
- Parameters
-
url | is a string containing the URL. e.g. "https://scummvm.org". |
- Return values
-
true | if successful. |
false | on failure or if using an older version of libcurl. |
◆ getScheme()
Extracts the scheme of an URL parsed previously by parseURL.
- Return values
-
String | of the URL's scheme. e.g. "https". |
Empty | string on failure. |
◆ getHost()
Extracts the host name of an URL parsed previously by parseURL.
- Return values
-
String | of the URL's host name. e.g. "scummvm.org". |
Empty | string on failure. |
◆ getPort()
int Networking::CurlURL::getPort |
( |
bool |
returnDefault = false | ) |
|
Extracts the port of an URL parsed previously by parseURL.
- Parameters
-
returnDefault | tells libcurl to return the default port according to the URL's scheme if not explicitly defined |
- Return values
-
The | URL's port number if one exists. |
0 | if no port found. |
default | port if returnDefault is true. |
-1 | on failure. |
The documentation for this class was generated from the following file:
- backends/networking/curl/url.h