社区
ASP
帖子详情
asp中如何获得一个url的内容并把内容保存下来?
icewolf_li
2002-05-16 10:15:48
比如:
content = something("http://www.csdn.net/index.asp")
response.write content
显示的就是index.asp所生成的叶面的内容。
...全文
56
4
打赏
收藏
asp中如何获得一个url的内容并把内容保存下来?
比如: content = something("http://www.csdn.net/index.asp") response.write content 显示的就是index.asp所生成的叶面的内容。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
saucer
2002-05-16
打赏
举报
回复
try to install MSXML3/MSXML4, or ASPHTTP, or WinHTTP
here is an example using MSXML2.ServerXMLHTTP from MSXML4
DIM xmlhttp, strResponse
set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET", "http://www.csdn.net/index.asp", false
xmlhttp.send
Response.write xmlhttp.responseText
set xmlhttp=nothing
ChinaOk
2002-05-16
打赏
举报
回复
不用编程,得到一个用户QQ在线状态
2001-10-30 动网先锋
把下面代码另存为一个.htm文件就行了。
<script language=vbscript>
Function GetURL(url)
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False, "", ""
.Send
GetURL = .ResponseText
End With
Set Retrieval = Nothing
End Function
</script>
小图标:
<script language=vbscript>
Dim T,Start,Length,PicURL
T=GetURL("http://search.tencent.com/cgi-bin/friend/oicq_find?oicq_no=1924192")
Start=Instr(1,T,"ShowResult("+chr(34))
Start=Instr(Start,T,"http://")
Length=Instr(Start,T,chr(34)+","+chr(34))-Start
PicURL=Mid(T,Start,Length)
'document.write "<img src='"&PicURL&"'>"
document.write "<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln=1924192 target=_blank title=QQ:1924192><img src="&PicURL&" width=16 height=16 border=0></a>"
</script>
<br>
大图标:
<script language=vbscript>
Dim T,Start,Length,PicURL
T=GetURL("http://search.tencent.com/cgi-bin/friend/user_show_info?ln=1924192")
Start=Instr(1,T,"img height=32")
Start=Instr(Start,T,"http://")
Length=Instr(Start,T,chr(34)+" width=32")-Start
PicURL=Mid(T,Start,Length)
'document.write "<img src='"&PicURL&"'>"
document.write "<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln=1924192 target=_blank title=QQ:1924192><img src="&PicURL&" width=32 height=32 border=0></a>"
</script>
孟子E章
2002-05-16
打赏
举报
回复
set xmlhttp=Server.CreateObject("Msxml2.xmlhttp")
xmlhttp.open "GET","http://www.csdn.net/index.asp",false
xmlhttp.send
response.write xmlhttp.ResponseText
ChinaOk
2002-05-16
打赏
举报
回复
使用脚本下载网页
说明:
文章来源:中文NT资源网[http://www.AboutNT.com]
版权信息:原创、编译的文章版权归本站所有,如有引用请与中文NT资源网[http://www.AboutNT.com]站长联系。
其它信息:中文NT资源网[http://www.AboutNT.com]为个人网站,站长沧海笑一声,Email:zhuqs@163.com
源码:
'来源:中文NT资源网(http://www.aboutnt.com)
'改写:沧海笑一声
/**
* Script: dlwebpage.js
* Purpose: Downloads the webpage specified by 'url'
* Author: Daren Thiel
* Date: 17 May 1999
*
* Note: Rename this script dlwebpage.js
* Web: http://www.winscripter.com
* Copyright 1999 Daren Thiel
**/
// The URL to download
var url = "http://www.aboutnt.com/default.htm"
// Create instance of Inet Control
inet = new ActiveXObject("InetCtls.Inet");
// Set the timeout property
inet.RequestTimeOut = 20;
// Set the URL property of the control
inet.Url = url;
// Actually download the file
var s = inet.OpenURL();
// Show the raw HTML to the user
WScript.Echo( s );
// Bonus - Find the title of the page
// Regular expression to find the string stored between
// the title tags.
rtitle = /<title>(.*)<\/title>/i;
// Execute the regular expression on the raw HTML
var title = rtitle.exec( s );
// Display the result
WScript.Echo( RegExp.$1 );
ASP
.NET Core 基础 部署至Linux
主要
内容
第一讲什么是
ASP
.NET Core 第二讲
ASP
.NET Core 基本架构 第三讲
ASP
.NET Core OWIN 第四讲 创建
ASP
.NET Core第
一个
程序 第五讲
ASP
.NET Core 运行静态文件1 第六章
ASP
.NET Core运行默认文件 第七讲
ASP
...
asp
.net重写
URL
IT168专稿】 灵活的
URL
重写可以让你的网站增加可用性和专业性。在帮助网站更好的被搜索引擎索引收录方面,这也是
一个
重要的因素。...
URL
重写就是首先
获得
一个
进入的
URL
请求然后把它重新写成网站可以处理的另
一个
URL
在
ASP
.NET
中
如何实现和利用
URL
重写
灵活的
URL
重写可以让你的网站增加可用性和专业性。在帮助网站更好的被搜索引擎索引收录方面,这也是
一个
重要的因素。...
URL
重写就是首先
获得
一个
进入的
URL
请求然后把它重新写成网站可以处理的另
一个
URL
的过程。举
在浏览器
中
输入
一个
URL
会发生什么?
最近看到
一个
题目,**当在浏览器
中
输入
一个
url
后回车,后台发生了什么?**比如输入
url
后,你看到了百度的首页,那么这一切是如何发生的呢? 网上各种的说法,不外乎都是这样的: 第一步:客户机提出域名解析请求,并...
Temporary
ASP
.NET Files 文件夹
中
保存
的是什么
内容
Temporary
ASP
.NET Files 文件夹
中
保存
的是什么
内容
作为一名
ASP
.NET 开发人员,您可能非常清楚
ASP
.NET 如何处理 .
asp
x 资源
中
的代码,如何对标记进行分析并将其动态转换成 Visual Basic® 或 C# 类,等等...
ASP
28,390
社区成员
357,068
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章