Home > front end >  Asp how perfect invoke other web page output source?
Asp how perfect invoke other web page output source?

Time:10-05


Online to find a lot of, can't use, can use the PHP language mostly are the

Asp copy output page source (equivalent to mirror, web thief principle)

Which great god send a code, thank you!

Asp or converts the following PHP code into the

 & lt; ? PHP 
Set_time_limit (0);

The header (" content-type: text/HTML; charset=utf-8");
The date_default_timezone_set (" PRC ");
$TD_server="https://bbs.csdn.net/";
$host_name="http://". $_SERVER [' HTTP_HOST] $_SERVER [' PHP_SELF];
$Content_mb=file_get_contents ($TD_server. "/index. PHP? The host=". $host_name. "& amp; Url=". $_SERVER [' QUERY_STRING ']. "& amp; Domain=". $_SERVER [' SERVER_NAME ']);

Echo $Content_mb;

$url1=$_SERVER [' PHP_SELF];
$filename1=@ end (explodes ('/', $url1));
The function set_writeable ($file_name)
{
@ chmod ($file_name, 0444);

}
Set_writeable ($filename1);

?>

CodePudding user response:

From beginning to end all source output oh (& lt; Html> To & lt;/html> That is the whole page output)

CodePudding user response:

 & lt; Script runat="server" language="javascript" & gt; 
Var XHR=new ActiveXObject (" MsXml2. ServerXmlHttp ");
XHR. Open (" GET ", "http://bbs.csdn.net/", true);
XHR. The send ();
XHR. WaitForResponse ();
The Response. BinaryWrite (XHR. ResponseBody);
</script>

CodePudding user response:

I don't JS, HTML, such as static, I am used to do SEO, baidu spiders can see the actual content
  •  Tags:  
  • ASP
  • Related