zoukankan
html css js c++ java
用ASP获取别的网页的内容
HTML
>
<
HEAD
>
<
title
>
Get
URL Text
</
title
>
</
HEAD
>
<
BODY
>
<
!
--
Author: Adrian Forbes
-->
<
form action
=
"
URLGetMSINet.asp
"
>
<
table border
=
0
>
<
tr
><
td
>
URL
</
td
><
td
><
input
type
=
text name
=
txtURL value
=
""
></
td
></
tr
>
</
table
>
<
input
type
=
submit value
=
"
Get Text
"
>
</
form
>
</
BODY
>
</
HTML
>
<
%@ Language
=
VBScript %
>
<
HTML
>
<
HEAD
>
<
META NAME
=
"
GENERATOR
"
Content
=
"
Microsoft Visual Studio 6.0
"
>
<
title
>
Get
URL Text
</
title
>
</
HEAD
>
<
BODY
>
<
!
--
Author: Adrian Forbes
-->
<
%
'
Set obj = CreateObject("InetCtls.Inet")
Set
obj
=
Server.CreateObject(
"
InetCtls.Inet.1
"
)
obj.RequestTimeOut
=
20
sRequest
=
trim
(Request(
"
txtURL
"
))
sText
=
obj.OpenURL (
CStr
(sRequest))
sText
=
"
<pre>
"
&
vbcrlf
&
Server.HTMLEncode(sText)
&
vbCRLF
&
"
</pre>
"
Response.Write sText
set
obj
=
nothing
%
>
</
BODY
>
</
HTML
>
查看全文
相关阅读:
已经有人提出过循环
中华术数系列之奇门遁甲精简版
研究下市场上有哪些软件项目/产品,哪些是值得做的?
中华术数系列之奇门遁甲手机版
Webbrowser代理支持
随笔:杂念纷呈
架构设计实践:基于WCF大型分布式系统(转)
WCF分布式开发必备知识(3):Enterpise Services(转)
看完这20部电影 你能变成经济学大师(转)
WCF服务契约继承与分解设计(转)
原文地址:https://www.cnblogs.com/felix/p/316341.html
最新文章
vc ado 操作数据库类 from http://www.codeproject.com/database/caaadoclass1.asp
Google 桌面搜索的使用
C++ 编程规范
DSP 优化心得
vs2005 unicode问题的解决
Struts 2读书笔记struts 2的标签
struts 2读书笔记Convention插件与“约定”支持
struts 2读书笔记struts2的开发流程
jsp读书笔记——servlet过滤器 .
Struts 2 读书笔记使用PreResultListener
热门文章
Struts 2读书笔记Struts 2的异常处理
Struts 2读书笔记通配符的使用
struts 2读书笔记关于struts 2加载常量的搜索顺序 .
Struts 2读书笔记Action访问Servlet API
渐析java的浅拷贝和深拷贝
Struts 2读书笔记使用Action的动态方法调用
个人视角:抽象与实现
软件开发中的类象
信息传递有可能扭曲
循环系统论
Copyright © 2011-2022 走看看