如何在经典 ASP 中将数据 http 发布到 Web 中的任何页面?
最佳答案
出于以下原因,我建议使用 ServerXMLHTTP
而不是 XmlHttp
:
XMLHTTP is designed for client applications and relies on URLMon, which is built upon Microsoft Win32 Internet (WinInet). ServerXMLHTTP is designed for server applications and relies on a new HTTP client stack, WinHTTP. ServerXMLHTTP offers reliability and security and is server-safe.
http://support.microsoft.com/kb/290761
例子:
DataToSend = "id=1"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST","http://localhost/Receiver.asp",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Set xmlhttp = nothing
关于http - 如何在 Classic ASP 中将 HTTP 发布数据发送到 Web 中的任何页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1699757/