Sample code for 30+ languages & platforms
Lianja

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Lianja Downloads

Lianja
loHttp = createobject("CkHttp")

// Establish 2 cache root directories.
loHttp.AddCacheRoot("c:/example/httpCacheA/")
loHttp.AddCacheRoot("c:/example/httpCacheB/")

? "Number of cache roots: " + str(loHttp.NumCacheRoots)

? "1st cache root: " + loHttp.GetCacheRoot(0)
? "2nd cache root: " + loHttp.GetCacheRoot(1)

// Output:

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


release loHttp