ASP生成静态页面

前端之家收集整理的这篇文章主要介绍了ASP生成静态页面前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
 'response.Write(FilePath)
 Do_Url = "http://"
 Do_Url = Do_Url&Request.ServerVariables("SERVER_NAME")&"/default.aspx"
 strUrl = Do_Url
 'response.Write(strUrl)
 dim objXmlHttp
 set objXmlHttp = Server.CreateObject("Microsoft.XMLHTTP")
 objXmlHttp.open "GET",strUrl,false
 objXmlHttp.send()
 Dim binFileData
 binFileData = objXmlHttp.responseBody
 Dim objAdoStream
 set objAdoStream = Server.CreateObject("ADODB.Stream")
 objAdoStream.Type = 1
 objAdoStream.Open()
 objAdoStream.Write(binFileData)
 objAdoStream.SaveToFile FilePath,2
 objAdoStream.Close()
 
 Response.Write("")
%>

猜你在找的Asp相关文章