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