Sample code for 30+ languages & platforms
Classic ASP

Example: Http.GetCacheRoot method

Demonstrates the GetCacheRoot method.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set http = Server.CreateObject("Chilkat.Http")

' Establish 2 cache root directories.
http.AddCacheRoot "c:/example/httpCacheA/"
http.AddCacheRoot "c:/example/httpCacheB/"

Response.Write "<pre>" & Server.HTMLEncode( "Number of cache roots: " & http.NumCacheRoots) & "</pre>"

Response.Write "<pre>" & Server.HTMLEncode( "1st cache root: " & http.GetCacheRoot(0)) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( "2nd cache root: " & http.GetCacheRoot(1)) & "</pre>"

' Output:

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

%>
</body>
</html>