Use the xmlhttp object to obtain remote data, and then output it to the client browser in binary to let the client download the data. This example obtains a compressed package from a remote server and outputs it to the browser for customer download. Program code:
<%
= True
Dim objXMLHTTP, xml
Set xml = ("") 'Create an object
"GET","http:///webtech/code/",False ' 'Set the object, please see:/?logID=273 The article "XMLHTTP Objects and Methods" for details of the specific usage methods of xmlhttp 'Send a request
"Content-Disposition", "attachment;filename=" 'Add header to this file
= "application/zip" 'Set the output type
'Output binary to browser Set xml = Nothing
%>
----------------------------------------------
Ouyang Dongjie Creation (please keep this information when reprinting)
QQ:2596812 MSN:xzskyweb@
----------------------------------------------
(Source: Fengshan Network Academy)