• ----:)欢迎访问源码网(:----
    • 首页
    • 博客
    • 学院
    • 下载
    • 论坛
    • 影视
    • 发布源码
    • RSS
    • ITPig
    • 笑话网
    • 百家姓
    • 繁體中文

源码网 - 中国第一源码门户
选择镜像:网通镜像 - 电信主站
  • 首 页
  • 新闻动态
  • 网站运营
  • 网页制作
  • WEB开发
  • 编程开发
  • 图像媒体
  • 操作系统
  • 数据库
  • 服务器
热门搜索 优化 SEO 故事 cms IIS7 MySQL 个人 AdSense 主题推广 | 文章搜索: 高级搜索
会员登录/控制面版您的位置: 学院首页 >> WEB开发 >> ASP开发 >> 组件开发 >> 详细内容
 

推荐文章

 
 

热点文章

  • VB编写ActiveX DLL实现ASP编程
  • 汉字转换拼音(带音调)Asp版
  • 新生命Web服务器v1.1源码
  • VB编写ASP组件的调试
  • 使用ASPJPEG添加水印的方法
  • 用VB将ASP代码封装成DLL
  • 常见ASP组件介绍及下载
  • 用VB生成DLL封装ASP代码,连接数据库
  • 使用VB编写纯ASP程序
  • 调用winrar压缩文件夹
  • 利用OWC画图的例子
  • Asp生成条形码
 
 

相关文章

  • 一个用来画图的组件(画饼图,条形图,各种形状图象的
  • 利用OWC服务器端组件动态生成图表
  • 作一个可以直接和浏览器进行交互的组件
  • 一个用组件动态创建Excel文件的实例
  • 使用VC++6.0制作ASP服务器控件简介
  • 用VB创建FTP组件(get)
  • 用VB创建FTP组件(put)
  • 在WEB环境下打印报表的crystal的解决方案
  • 用ASP、VB和XML建立互联网应用程序
  • 如何制作无状态的ASP组件
  • 利用ASP改进文档上载控件
  • 利用ASP改进文档上载控件
 
 

百度搜索

 
 

如何取其它网站的内容!一句话用组件asphttp

  • 阅览次数:
  • 文章来源: 网贝整理
  • 原文作者: 佚名
  • 整理日期: 2006-10-03
  • 发表评论
  • 字体大小:
  • 小
  • 中
  • 大



3rd party components like ASPHTTP can grab the HTML contents of a specific URL into an ASP string. Supports GET/POST/HEAD documents via the HTTP protocol, examining response headers, transfering requests to a file (including binary transfers) and password authentication support. They can also be used on YOUR OWN SITE to make dynamic includes possible.

available at http://www.serverobjects.com/products.htm

Microsoft includes WinInet which seems to be ideally suited for this EXCEPT is currently not thread safe, see:
http://www.learnasp.com/advice/threadsafe.asp
so Tools like ASPHTTP are a necessity.

Here is a sample where ASPHTTP is used to grab contents from another site.

<Test Script Below>

<html><head>
<title>asphttpother.asp</title>
</head>
<body>
<%
      Set HttpObj = Server.CreateObject("AspHTTP.Conn")

      HttpObj.Url = "http://www.funinspace.com"
      strResult = HttpObj.GetURL
      
      STRresult=server.htmlencode(STRresult)
      response.write STRresult

      SET HTTPobj = nothing
%>
</body>
</html>




Here is a sample where ASPHTTP is used to allow a string to decide  which page on our site is executed.

<Test Script Below>
<html><head>
<title>asphttpdynamic.asp</title>
</head>
<body bgcolor="#FFFFFF">
<%
   mystring="/learn/test/response.asp"

      Set HttpObj = Server.CreateObject("AspHTTP.Conn")
      HttpObj.Url = "http://www.learnasp.com" & mystring
      strResult = HttpObj.GetURL
      response.write STRresult

      SET HTTPobj = nothing
%>
</body>
</html>

上一篇:PHP编程技巧:看实例学正则表达式
下一篇:构建支持Master/Slave读写分离的数据库操作类
  • 网友评论:
  • 查看所有评论
  • 我要发表评论
您的网名:
留言主题:
你要发表的内容:

 

关于本站 | 广告联系 | 版权声明 | 网站地图 | 发布软件 | 帮助中心 | 源码论坛

Copyright © 2005-2007 CodePub.Com  程序支持:木翼  滇ICP备05005971号