Sample code for 30+ languages & platforms
Visual FoxPro

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loHttp

loHttp = CreateObject('Chilkat.Http')

* 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