<script language="JavaScript">
strA = "123";
var oReq = new ActiveXObject("MSXML2.XMLHTTP");
oReq.open("POST","http://localhost/SubNotify/Provision.aspx",false);
oReq.setRequestHeader("Content-Length",strA.length);
oReq.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
oReq.send(strA);
</script>
iis日志文件中显示不能读取该字符串
POST /SubNotify/Provision.aspx - 500 500代表错误
请问要做什么修改,才能使Provision.aspx页面接受到123字符
strA = "123";
var oReq = new ActiveXObject("MSXML2.XMLHTTP");
oReq.open("POST","http://localhost/SubNotify/Provision.aspx",false);
oReq.setRequestHeader("Content-Length",strA.length);
oReq.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
oReq.send(strA);
</script>
iis日志文件中显示不能读取该字符串
POST /SubNotify/Provision.aspx - 500 500代表错误
请问要做什么修改,才能使Provision.aspx页面接受到123字符
xmlHttp.open("GET" , url , false , username , password );
xmlHttp.setRequestHeader( "Accept-Lauguage" , "zh-cn" );
try
{
xmlHttp.send( null );
if( xmlHttp.status == 200 )
{ //验证成功
Page.RegisterStartupScript( "aa" , "<script language='javascript'>window.open('" + url + "');</script>" );
return true;
}
else
{ //验证失败
return false;
}
}
catch( Exception eUserInfo )
{
lblError.Text = eUserInfo.ToString();
lblError.Visible = true;
return false;
}
设置ValidateRequest为false即可
strA = "name=123";
var oReq = new ActiveXObject("MSXML2.XMLHTTP");
oReq.open("POST","http://localhost/SubNotify/Provision.aspx",false);
oReq.setRequestHeader("Content-Length",strA.length);
oReq.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded");
oReq.send(strA);
</script>Request.Form["name"] c#