Sample code for 30+ languages & platforms
AutoIt

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat AutoIt Downloads

AutoIt
$oHttp = ObjCreate("Chilkat.Http")

; Establish 2 cache root directories.
$oHttp.AddCacheRoot "c:/example/httpCacheA/"
$oHttp.AddCacheRoot "c:/example/httpCacheB/"

ConsoleWrite("Number of cache roots: " & $oHttp.NumCacheRoots & @CRLF)

ConsoleWrite("1st cache root: " & $oHttp.GetCacheRoot(0) & @CRLF)
ConsoleWrite("2nd cache root: " & $oHttp.GetCacheRoot(1) & @CRLF)

; Output:

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