您无法从ASP页面读取实际的服务器端代码,但您可以获得页面生成的html.这是一篇很好的文章:
http://classicasp.aspfaq.com/general/how-do-i-read-the-contents-of-a-remote-web-page.html
这里有一个来自该网站的片段,可以帮助您入门 - 此外还有关于此的其他帖子:
<%
url = "http://www.yoursite.com/yourpage.asp"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
Response.write xmlhttp.responseText
set xmlhttp = nothing
%>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3555 次 |
| 最近记录: |