我的一亩三分地 我就喜欢!
13fen  设为主页
 收藏本站
 
当前位置: > 一亩三分地:首页 > 操作系统 > 服务器 > FTP服务器 > 使用脚本下载网页
热门文章排行
热门文章排行 服务器应用:用serv-u建立FTP一(11-16)
Windows中IIS内FTP服务器高级配置(11-16)
服务器架站务实:零起步学FTP概念篇(11-22)
win2k下几种ftpserver的比较(11-22)
网管必读:为SERV-U打造最安全的FTP(11-22)
精采文章排行
精采文章排行 功能强大的FTP客户端 FTPRush技巧三(11-16)
Windows中IIS内FTP服务器高级配置(11-16)
FTP非交互方式文件传输(11-16)
内网IP建ftp服务器教程(11-16)
FTP服务器架设--架设篇(11-16)
技术专题推荐
网管论坛交流
 

使用脚本下载网页 

作者:   来源:   点击:   日期:2006-10-18

// 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
 



文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:
·ftp下载中代理的使用 ·如何用FLashGet下载隐藏链接
·建立安全 Web 服务 ·明白下载之HTTP和FTP下载
·不能完成下载的原因及解决办法 ·FTP命令使用精华集粹

   文章评论:(条)
  
 请留名: 匿名评论   点击查看所有评论 网管论坛
 

  责任编辑:一分  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。