无需技术,做网站,你也牛!
所有新购主机 增送数据库
操作简洁 功能强大
专业团队 资深背景
微信搜索:cn163ns
主要功能是针对微信商家公众号提供与众不同的、有针对性的营销推广服务。通过微信平台,用户可以轻松管理自己的微信各类信息,对微信公众账号进行维护、开展智能机器人、在线发优惠劵、抽奖、刮奖、派发会员卡、打造微官网、开启微团购等多种活动,对微信营销实现有效监控,极大扩展潜在客户群和实现企业的运营目标。无使用时间和功能限制
关于asp生成html简单实现程序,有需要的朋友可参考一下。
Function getHttpXML()
Set Http = Server.CreateObject("Msxml2.ServerXMLHTTP")
dim lResolve,lConnect,lSend,lReceive
lResolve = 5*1000
lConnect = 5*1000
lSend = 15*1000
lReceive = 15*1000
Http.setTimeouts lResolve,lConnect,lSend,lReceive
Http.open "POST","http://www.hulian.top",false '抓取需要生成html的页面
Http.Send()
if Http.readystate =1 then str1=timer()
if Http.readystate =4 then str2=timer()
if Http.readystate <> 4 then
exit Function
end if
'if Http.readystate =0 then str1=timer()
'getHttpXML=BytesToBstr(Http.responseBody,"utf-8")
getHttpXML=Http.responseBody
'getHttpXML=FormatNumber((str2-str1)/1000,3)
if err.Number<>0 then err.Clear
End Function
'生成文件
Function SaveToFile()
Dim objStream
On Error Resume Next
Set objStream = Server.CreateObject("ADODB.Stream")
If Err.Number=-2147221005 Then
Response.Write "<div align='center'>非常遗憾,您的主机不支持ADODB.Stream,不能使用本程序</div>"
Err.Clear
Response.End
End If
With objStream
.Type = 1
.Open
.Charset = "utf-8"
.write getHttpXML
.SaveToFile Server.MapPath("index.html"),2
.Close
End With
Set objStream = Nothing
End Function
call SaveToFile()