Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/449.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 对一个页面的HTTP请求,该页面在C语言中被重定向到另一个页面#_Javascript_C#_Asp.net - Fatal编程技术网

Javascript 对一个页面的HTTP请求,该页面在C语言中被重定向到另一个页面#

Javascript 对一个页面的HTTP请求,该页面在C语言中被重定向到另一个页面#,javascript,c#,asp.net,Javascript,C#,Asp.net,我有一个链接 当我在浏览器中尝试此页面时,它解析数字(008801719461643)并发送一个java脚本响应字符串,它将重定向到hasent.aspxby window.location=''位于dosend.aspx页面中 在hasent.aspx中,它在数据库中记录了mysqldbId=100的数据(whcih由dosend.aspx生成)。并在008801719461643中成功发送短信 当我通过c请求它时# responseString包含带有java脚本的dosent.aspxht

我有一个链接

当我在浏览器中尝试此页面时,它解析数字(008801719461643)并发送一个java脚本响应字符串,它将重定向到
hasent.aspx
by

window.location=''位于
dosend.aspx
页面中

hasent.aspx
中,它在数据库中记录了mysqldbId=100的数据(whcih由
dosend.aspx
生成)。并在008801719461643中成功发送短信

当我通过c请求它时#

responseString包含带有java脚本的
dosent.aspx
html的html

<script>
window.location='http://www.example.com/hassent.aspx?mysqldbId=100 
</script>

窗口位置http://www.example.com/hassent.aspx?mysqldbId=100 

未发送短信,但请求仍记录到数据库中。在浏览器中单击URL发送短信,但c#请求未发送。是否可以通过C#应用程序实现?怎么做

您是否尝试将另一个HttpWebRequest发送到
hasent.aspx?mysqldbId=100
?您的服务器正在执行初始请求,如果第二个请求来自客户端的浏览器(不同的IP等),则可能无法工作我已经解析了responseString以获取
mysqldbId
,并通过c#发出了另一个请求,但这次也没有发送短信。请确保您仔细检查responseString以查看是否有任何指示成功或失败的信息。responseString获得了状态为“OK”的完整html响应但该页面没有重定向到'hasent.aspx?mysqldbId=100'
<script>
window.location='http://www.example.com/hassent.aspx?mysqldbId=100 
</script>