I'm having a problem on Windows 2003 Server with this script. It
appears to be a problem with MS XML 4.0 as this code was working fine
under MS XML 3.0 and Windows XP or 2000. Any ideas? The purpose of the
script is to act as a 'proxy' and send a POST or GET to another URL but
return the response through the ASP page as if the ASP page handled the
request:
<%@language=JSc ript%>
<%
var objSrvHTTP=Serv er.CreateObject ("MSXML2.Server XMLHTTP");
var url="http://someurl"
if (Request.Server Variables("REQU EST_METHOD")==" POST") {
var DataToSend = Request.BinaryR ead(Request.Tot alBytes);
objSrvHTTP.open ("POST",url,fal se);
objSrvHTTP.setR equestHeader("C ontent-type","applicat ion/x-www-form-urlencoded");
objSrvHTTP.send (DataToSend);
} else {
objSrvHTTP.open ("GET",url+"?"+ Request.ServerV ariables("QUERY _STRING"),false );
objSrvHTTP.send ();
}
Response.Write( objSrvHTTP.resp onseText);
%>
de*******@gmail .com
Cliff.