<%
?’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生成静态页面
?’response.Write(FilePath) ?Do_Url = “http://” ?Do_Url = Do_UrlRequest.ServerVariables(“SERVER_NAME”)”/default.aspx” ?strUrl = Do_Url ?’response.Write(strUrl) ?dim objXmlHttp ?set objXmlHttp = Server.CreateObject(“Microsoft.XMLHTTP”) ?ob
本文来自网络,不代表站长网立场,转载请注明出处:https://www.tzzz.com.cn/html/jc/asp/2021/0710/12511.html