Skip to content

libcURL.CompareDomains

Andrew Lambert edited this page Jan 8, 2023 · 8 revisions

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.

See also

Clone this wiki locally