Sample code for 30+ languages & platforms
VBScript

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot 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")

' Establish 2 cache root directories.
http.AddCacheRoot "c:/example/httpCacheA/"
http.AddCacheRoot "c:/example/httpCacheB/"

outFile.WriteLine("Number of cache roots: " & http.NumCacheRoots)

outFile.WriteLine("1st cache root: " & http.GetCacheRoot(0))
outFile.WriteLine("2nd cache root: " & http.GetCacheRoot(1))

' Output:

' Number of cache roots: 2
' 1st cache root: c:/example/httpCacheA/
' 2nd cache root: c:/example/httpCacheB/

outFile.Close