Travis McGee
2008-07-10 21:07:29 UTC
I need to create this functionality outside of the IIS with an object - pre
.NET code.
The code below is part of a classic ASP.
<%
Set objHttp = Server.CreateObject("WinHTTP.WinHTTPRequest.5.1")
objHttp.open "POST", www.Microsoft.com/myPage.asp, False
WinHttpRequestOption_SslErrorIgnoreFlags = 4
objHttp.Option(WinHttpRequestOption_SslErrorIgnoreFlags) = &H3300
objHttp.Send "firstName=Dick&lastName=Cheney&status=GodKnows"
sReturnedResponse = objHttp.responseText
%>
So you just cannot do an OLE call ==>
CreateObject("WinHTTP.WinHTTPRequest.5.1") , becuase this object is part of
the IIS server and is isolated, I think.
Does anybody know an Object that is part of the Win 2003 or 2008 (already
installed) but can be called with CreateObject("xxxxx").
Example: MSXML does not work, because you cannot POST the Named pairs
seperately, it has to be part of the URL. And perhaps there is no way of
setting flags like the SslErrorIgnoreFlag
Set XMLHTTP = CreateObject("Msxml2.XMLHTTP")
XMLHTTP.Open "POST", sUrl & "?" & sPairs, False
x = XMLHTTP.send()
Anything will help
.NET code.
The code below is part of a classic ASP.
<%
Set objHttp = Server.CreateObject("WinHTTP.WinHTTPRequest.5.1")
objHttp.open "POST", www.Microsoft.com/myPage.asp, False
WinHttpRequestOption_SslErrorIgnoreFlags = 4
objHttp.Option(WinHttpRequestOption_SslErrorIgnoreFlags) = &H3300
objHttp.Send "firstName=Dick&lastName=Cheney&status=GodKnows"
sReturnedResponse = objHttp.responseText
%>
So you just cannot do an OLE call ==>
CreateObject("WinHTTP.WinHTTPRequest.5.1") , becuase this object is part of
the IIS server and is isolated, I think.
Does anybody know an Object that is part of the Win 2003 or 2008 (already
installed) but can be called with CreateObject("xxxxx").
Example: MSXML does not work, because you cannot POST the Named pairs
seperately, it has to be part of the URL. And perhaps there is no way of
setting flags like the SslErrorIgnoreFlag
Set XMLHTTP = CreateObject("Msxml2.XMLHTTP")
XMLHTTP.Open "POST", sUrl & "?" & sPairs, False
x = XMLHTTP.send()
Anything will help