Typically, when you crawl Web content remotely, the following code is usually used:
Set xmlhttp = Server.CreateObject ("Microsoft.XMLHTTP")
xmlHTTP. Open "Get", "http://diary.tw/tim/", False
xmlHTTP. Send
Response.Write XMLHTTP. ResponseText
Set xmlhttp = Nothing
But there are some problems with this, because XMLHTTP's work behavior is tied to the IE API, of course, there are good and bad, according to Microsoft's files, this set of components is suitable for use on the client side rather than the server, there will be some stability and performance problems, but more interesting there is a place where he The contents of the access to the file system on this computer will be enhanced by the following path:
C:\WINDOWS\Temp\Temporary Internet files\content.ie5
In other words, it takes up part of the space, but the actual observation is not entirely the situation of this cache, because the same Web page, is repeated reload, the cache with the directory will also grow, that is, the original design for the cache function, may not be used, but not yet Relationship, will always occupy space growth (no limit), this is more trouble.
I've been tracking a case before (c: Disk occupied space continued to grow in the situation, the original is this component of the problem, the actual test, if the visit of the Web page is not XML, it seems that there is no such situation, but most of the application environment, the data will be selected in the way of XML transmission, so there will still be this problem exists
To solve this problem, there is another set of components to use, MSXML2. ServerXMLHTTP, this set of components provides a more stable way to perform the aforementioned functions, and is almost entirely compatible with syntax, and provides more functionality and does not produce a large number of cache temp files, let's take a look at the Microsoft Official web comparison between the two:
http://support.microsoft.com/kb/290761
The main difference points are as follows:
XMLHTTP is designed to client applications and relies on Urlmon, which is built upon Microsoft Win32 Internet (WinInet). ServerXMLHTTP is designed to server applications and relies on a new HTTP client stack, WinHTTP. ServerXMLHTTP offers reliability and security and are server-safe. For more information, this is the MSXML Software Development Kit (SDK) documentation.
This makes it clear how the differences between XMLHTTP and ServerXMLHTTP are used within the ASP program, and the above program code is changed to read:
Set xmlhttp = Server.CreateObject ("MSXML2. ServerXMLHTTP ")
xmlHTTP. Open "Get", "http://www.alixixi.com/", False
xmlHTTP. Send
Response.Write XMLHTTP. ResponseText
Set xmlhttp = Nothing so, to solve the problem of generating a lot of unlimited growth of the garbage file, check your code quickly: More technical information Welcome to visit Arisisi www.alixixi.com technology platform.