社区
ASP
帖子详情
asp中如何获得一个url的内容并把内容保存下来?
icewolf_li
2002-05-16 10:15:48
比如:
content = something("http://www.csdn.net/index.asp")
response.write content
显示的就是index.asp所生成的叶面的内容。
...全文
64
4
打赏
收藏
asp中如何获得一个url的内容并把内容保存下来?
比如: content = something("http://www.csdn.net/index.asp") response.write content 显示的就是index.asp所生成的叶面的内容。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用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重写
URL
IT168专稿】 灵活的
URL
重写可以让你的网站增加可用性和专业性。在帮助网站更好的被搜索引擎索引收录方面,这也是
一个
重要的因素。...
URL
重写就是首先
获得
一个
进入的
URL
请求然后把它重新写成网站可以处理的另
一个
URL
在
ASP
.NET
中
如何实现和利用
URL
重写
灵活的
URL
重写可以让你的网站增加可用性和专业性。在帮助网站更好的被搜索引擎索引收录方面,这也是
一个
重要的因素。...
URL
重写就是首先
获得
一个
进入的
URL
请求然后把它重新写成网站可以处理的另
一个
URL
的过程。举
用
asp
解析图片地址,并将其
保存
现在基于WEB页的HTML的编辑器在新闻... 以前只好把这个图片
保存
下来
,再重新上传到服务器上,这样实在麻烦。能不能让服务器自动去下载图片
保存
在服务器并且替换页面上的链接?答案是肯定的。要实现这个功能需要经过三个
在浏览器
中
输入
一个
URL
会发生什么?
最近看到
一个
题目,**当在浏览器
中
输入
一个
url
后回车,后台发生了什么?**比如输入
url
后,你看到了百度的首页,那么这一切是如何发生的呢? 网上各种的说法,不外乎都是这样的: 第一步:客户机提出域名解析请求,并...
用
ASP
实现抓取图片到本地服务器
现在基于WEB页的HTML的编辑器在新闻系统,...以前只好把这个图片
保存
下来
,再重新上传到服务器上,这样实在麻烦。能不能让服务器自动去下载图片
保存
在服务器并且替换页面上的链接?答案是肯定的。要实现这个功能需要经
ASP
28,409
社区成员
356,971
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章