| 代码如下 | 复制代码 |
| 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","https://www.111cn.net",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.Number0 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 " 非常遗憾,您的主机不支持ADODB.Stream,不能使用本程序 "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() |
|
疯狂医院达什医生中文版(Crazy Hospital)
疯狂医院达什医生最新版是一款医院模拟经营类游戏,逼真的场景画
宝宝庄园官方版
宝宝庄园官方版是一款超级经典好玩的模拟经营类型的手游,这个游
桃源记官方正版
桃源记是一款休闲娱乐类的水墨手绘风格打造的模拟经营手游。玩家
长途巴士模拟器手机版
长途巴士模拟器汉化版是一款十分比真好玩的大巴车模拟驾驶运营类
房东模拟器最新版2024
房东模拟器中文版是一个超级有趣的模拟经营类型的手游,这个游戏