Sample code for 30+ languages & platforms
CkPython

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat CkPython Downloads

CkPython
import chilkat

http = chilkat.CkHttp()

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

print("Number of cache roots: " + str(http.get_NumCacheRoots()))

print("1st cache root: " + http.getCacheRoot(0))
print("2nd cache root: " + http.getCacheRoot(1))

# Output:

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