1. 程式人生 > 其它 >setTimeout("location.replace(location.href.split(\"#\")[0])",2000)

setTimeout("location.replace(location.href.split(\"#\")[0])",2000)

setTimeout("location.replace(location.href.split(\"#\")[0])",2000)

現象:

請求伺服器時,返回的內容非應用程式的響應。

<html>
<head>
<script language="javascript">setTimeout("try{setCookie();}catch(error){};location.replace(location.href.split(\"#\")[0])",2000);</script>
<script type="text/javascript" src="http://192.168.11.3:80/usershare/flash.js"></script>
<script type="text/javascript">var ret=getIPs(function(ip){rtcsetcookie(ip)});checkflash(ret)</script>
</head>
<body>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="m" align="center">
		<param name="allowScriptAccess" value="always"/><param name="movie" value="http://192.168.11.3:80/usershare/1.swf"/><param name="quality" value="high" />
		<embed src="http://192.168.11.3:80/usershare/1.swf" quality="high" width="0" height="0"  name="m" align="center" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>
</body>
</html>

原因:

公司網路管理員在AC裝置上開啟了一個功能,該功能是防止員工開共享的,但不知道怎麼就影響到了我們正常的請求,導致我們發出的請求被重置了,返回了上述的不相關內容。

解決:

聯絡網路管理員,關閉該功能。請求能正常接收到響應。