阅读背景:

用HttpURLConnection获取的网页内容是一堆没用的js,这是什么原因呢?根本没有获取到当前页面的内容

来源:互联网 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>	<meta http-equiv="content-type" content="text/html;charset=utf-8"/>	<title></title>	<script type="text/javascript">StaticRequestInfo={Referer:document.referrer};function EscapeBrowserFrame(){try{if(window.top.location==window.self.location){}else{window.top.location.href=document.location.href}}catch(Error){}}function SetRequestTitle(){document.title=document.domain}function InitiateFrameRequest(){var a="";var b="";if(window.location.search.indexOf("?")==0){b="&framerequest=1"}else{b="?framerequest=1"}b+="&refurl="+encodeURIComponent(StaticRequestInfo.Referer);a=window.location+b;document.write("<frameset rows=\"100%,*\" frameborder=\"no\" border=\"0\" framespacing=\"0\"><frame src=\""+a+"\" name=\"landingparent\"><\/frameset>")}SetRequestTitle();EscapeBrowserFrame();	</script></head><script type="text/javascript">	InitiateFrameRequest();</script><body>	<noscript>		<meta http-equiv="refresh" content="0;url=/?framerequest=1">	</noscript>	<noframes>		<meta http-equiv="refresh" content="0;url=/?framerequest=1">	</noframes></body></html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: