Sample code for 30+ languages & platforms
VBScript

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat VBScript Downloads

VBScript
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

set http = CreateObject("Chilkat.Http")

domain = http.GetDomain("https://chilkatsoft.com/refdoc/csharp.asp")
outFile.WriteLine(domain)

' Output: chilkatsoft.com

outFile.Close