Classic ASP
Classic ASP
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat Classic ASP Downloads
<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>