ASP生成页面参数设置求教!
Fso1.Writeline(getHTTPPage("http://127.0.0.1/htdocs/index1.asp"))
中的getHTTPPage的参数应该怎么写?
我把三书改成Server.MapPath("index1.asp")生成的页面是asp的代码
换成http://127.0.0.1/htdocs/index1.asp,总是说Bad Request (Invalid Hostname)
Function getHTTPPage(url)
'on error resume next
dim http
set http=Server.createobject("Msxml2.XMLHTTP")
Http.open "GET",url,false
Http.send()
If Http.readystate<>4 Then Exit Function
getHTTPPage=bytes2BSTR(Http.responseBody)
Set http=Nothing
If err.number<>0 then err.Clear
End Function
中的getHTTPPage的参数应该怎么写?
我把三书改成Server.MapPath("index1.asp")生成的页面是asp的代码
换成http://127.0.0.1/htdocs/index1.asp,总是说Bad Request (Invalid Hostname)
Function getHTTPPage(url)
'on error resume next
dim http
set http=Server.createobject("Msxml2.XMLHTTP")
Http.open "GET",url,false
Http.send()
If Http.readystate<>4 Then Exit Function
getHTTPPage=bytes2BSTR(Http.responseBody)
Set http=Nothing
If err.number<>0 then err.Clear
End Function
...全文
相关推荐
asp fso静态生成页面
现成asp 生成静态的HTML的静态页面新闻,可以下载直接使用!
ASP生成二维码代码
ASP生成二维码,不过不好用,还是DEMO版本,建议需要的下载参考一下就行了,没有实用价值。
ASP中不用模板生成HTML静态页面的方法
我们一般生成HTML静态页时,常常会事先做好一个模板,然后生成时调用模板文件。那么有没有办法不用模板,如一个正常的htmer.asp页面,直接生成为htmer.html页面呢?
asp生成静态html页面
asp生成静态htmlasp生成静态html
asp生成静态页面的源码 asp生成
ASP转变为Html。不要我再说ASP转变成HTML的好处了吧,其中最值得知道的就是:静态HTML页和动态页对服务器的要求承受能力小得多,同样,静态HTML搜索几率远比动态页面的多得多。


