Forum Moderators: open
strPostURL = "http://www.example.com/posthere.asp"
strPost = "variable1=value1&variable2=value2"
set objPost = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
objPost.Open "POST", strPostURL, false
objPost.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objPost.send strPost
strTheResponse = objPost.responseText
Create a hidden form using post, and use ASP to populate the form values. Then simply use some javascript to submit.
It might go something like below. I'm not certain it will work, because doing it this way, your submit might happen before you form is created, but it's worth investigating.
<%
'ASP stuff here to get values into strValue1 and strValue2
%>
<html>
<head>
<script language='javascript'>
function MoveAlong()
{
document.frmForm.submit()
}
</script>
</head>
<body onload='MoveAlong()'>
<form name='frmForm' method='post' action='http://www.detinationurl.com'>
<input type='hidden' name='hidValue1' value='<%=strValue1%>'>
<input type='hidden' name='hidValue2' value='<%=strValue2%>'>
</form>
</body>
Anyway, it's ugly, but it might do the trick...
-Moz.