Sample code for 30+ languages & platforms
Xojo Plugin

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim http As New Chilkat.Http

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

System.DebugLog("Number of cache roots: " + Str(http.NumCacheRoots))

System.DebugLog("1st cache root: " + http.GetCacheRoot(0))
System.DebugLog("2nd cache root: " + http.GetCacheRoot(1))

// Output:

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