libcURL.CompareDomains - charonn0/RB-libcURL GitHub Wiki
libcURL.CompareDomains
Method Signature
Protected Function CompareDomains(Hostname1 As String, Hostname2 As String, Optional EasyItem As libcURL.EasyHandle) As Boolean
Parameters
| Name | Type | Comment |
|---|---|---|
| Hostname1 | String | The first domain name |
| Hostname2 | String | The second domain name |
| EasyItem | EasyHandle | Optional. An easy handle to use |
Return value
Returns True if the domains match, otherwise returns False.
Remarks
Compares Hostname1 and Hostname2 to determine whether they belong to the same subdomain. Refer to the HTTP cookies example for a discussion of how domains are compared.
libcurl needs a curl_easy handle to URLdecode data. If EasyItem is not Nil, then the EasyItem is used; otherwise a new EasyHandle is constructed.