Sample code for 30+ languages & platforms
Xbase++

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Xbase++ Downloads

Xbase++
LOCAL oHttp

oHttp := CreateObject("Chilkat.Http")

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

? "Number of cache roots: " + Str(oHttp:NumCacheRoots)

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

//  Output:

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

oHttp:destroy()