1 回复
function PostHTTPPage(url,data)
dim Http
set Http=server.createobject(“MSXML2.ServerXMLHTTP”)
Http.open “Post”,url,False
Http.setRequestHeader"CONTENT-TYPE",“application/x-www-form-urlencoded”
Http.send(data)
if Http.readystate<>4 then exit function
PostHTTPPage=bytesToBSTR(Http.responseBody,“utf-8”)
set http=nothing
if err.number<>0 then err.Clear
end Function