社区
ASP
帖子详情
asp中如何获得一个url的内容并把内容保存下来?
icewolf_li
2002-05-16 10:15:48
比如:
content = something("http://www.csdn.net/index.asp")
response.write content
显示的就是index.asp所生成的叶面的内容。
...全文
98
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
自动解析网页
中
的图片地址,并将其
保存
到本地服务器
主题: 用
asp
自动解析网页
中
的图片地址,并将其
保存
到本地服务器 现在基于WEB页的HTML的编辑器在新闻系统,文章系统
中
用得越来越广,
一个
网页一粘就可以保持原来的样式,同时图片也可以在这个页
中
保持。但是在使用过程
中
,如果所粘贴页
中
的图片被删除,就会在自己的页面上留下
一个
大大的“X”,影响美观。以前只好把这个图片
保存
下来
,再重新上传到服务器上
ASP
伪静态及
URL
重写
用ISAPI_Rewrite实现
asp
的静态化
ASP
网站程序在国内运用很广,但是类似于im286.
asp
?id=20050307213811这样的
URL
有点不利于搜索引擎的收录,也就是说不符合友好
URL
(
URL
s-Friendly)的标准,那么我们用ISAPI_Rewrite打造
一个
Clean
URL
,1.下载ISAPI_Rewrite.ISAPI_Rewrite分精简(Lite)和完
ASP
.NET--图片上传
保存
url
到数据库
ASP
.NET--图片上传
保存
url
到数据库 开发工具:Visual Studio 2015、SQL Server 2014 Management Studio 关键技术:C# MVC 作者:刘东标 撰写时间:2019年1月18日 实现效果: 、、、、、、、、、、、、、、、、、html代码、、、、、、、、、、、、、 </table> ...
ASP
.NET通过更改
Url
进行页面传值
这里,通过假数据,手动创建的
一个
类,然后创建的
一个
集合,放入下拉框,选好值以后,点确定 会在另
一个
页面产生对应的id,有不懂的欢迎评论 创建
一个
类: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1 { publi...
ASP
.NET状态
保存
的常用方法
ASP
.NET状态
保存
分为客户端
保存
和服务器端
保存
两种:使用客户端选项存储页信息而不使用服务器资源的这些选项往往具有最低的安全性但具有最快
ASP
28,401
社区成员
356,940
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章