中成网站建设
    成都做网站,就选中成网站建设!专业四川网站建设,成都网站建设服务提供商
            企业宣传网站建设、电子商务网站建设、OA办公系统。联系电话:028-66165255
    资讯列表  
 用Adodb.Stream的SaveToFile方…
 绝妙的asp生成静态页面html函数…
 关于页面缓存清除的方法小结_a…
 asp无限级分类加js收缩伸展功能…
 flash读取xml中文本格式的小问…
 区分 JavaScript、Jscript、VB…
 asp给access表增加列
 Asp时间相加问题使用DateAdd函…
 asp操作xml文档,自动生成换行…
 几款Access 在线管理工具(ASP…
 关于Html页面中大量连续英文字…
 ASP中正则表达式删除HTML代码,…
 ASP在access库里创建表,及判断…
 用javascript判断radio单选框是…
 WEB应用的缓存兼容性设计
    资讯详情  
服务器端用ASP来取得互联网上的任意文件
发布时间:2009-08-19                  来源:成都网站建设--中成网建         【加入收藏】
在服务器端用ASP来取得互联网上的任意文件使用ServerXMLHTTP或许更加合适.可以设定过期时间可以让ASP程序更具效率和可靠性,如下表所示:
 

 

XMLHTTP

ServerXMLHTTP

1

Works on Windows 98, 95 and ME

Requires at least Windows NT 4 with IE5.01 .

2

 

Does not have a means of waiting for an async call other than using another thread to handle the response via onreadystatechange.

 

Another technique is to loop on the main thread, polling the readystate property.

For example:

 While xmlhttp.readystate <> 4

   ' async request not complete yet; still waiting

 Wend

 

But this is not as efficient as the ServerXMLHTTP's WaitForResponse method

Has a waitForResponse method with a timeout when using async calls.

3

 

Allows configuring timeouts when sending messages.

4

Is designed for single-user, desktop applications, such as running in a browser-based app.

 

XMLHTTP's assumption that it is used only in single-user environments has security implications.

Do not use XMLHTTP in multi-user scenarios such as on IIS/ASP servers.

Also, in various cases, XMLHTTP may display UI dialogs (to collect credentials).

Supports multi-user, server-based applications, such as ASP apps.

5

Because XMLHTTP is designed for single-user client applications and is based on WinInet, it enforces strict limits on the number of simultaneous connections to a given server.

The limit is either 2 or 4 (depending on HTTP version).

The ServerXMLHTTP component does not impose any limits on the number of connections to a server.

6

XMLHTTP integrates with the IE browser's cache, which may cause problems in which "stale" response data is returned.

ServerXMLHTTP does not implement a cache.

7

XMLHTTP is HTTP/1.1 compliant.

XMLHTTP does support HTTP/1.1 chunking.

ServerXMLHTTP reports itself as an HTTP/1.0 client.

The reason is that ServerXMLHTTP does not support the HTTP/1.1 response "chunking" feature, which is required for 1.1 compliance.

8

By using the IE browser's proxy settings, XMLHTTP can take advantage of IE's auto-detection of proxy servers.

If IE is configured to access sites via a proxy server, then all requests made via XMLHTTP will also go through the proxy.

However, IE (and thus XMLHTTP) can be configured to bypass the proxy server for certain sites (assuming that a direct connection to the target server can be made).

This is done in the "Tools/Internet Options/Connections/LAN Settings" dialog in IE.

The "Bypass proxy server for local addresses" option should be checked to have the proxy server bypassed for intranet sites.

ServerXMLHTTP does not support any auto-detection or discovery of proxy servers; you must explicitly specify the name of the proxy server using the proxycfg.exe utility.

Can be configured with WinHTTP proxy config to access other machines directly (no proxy server).

9

The XMLHTTP component in MSXML 3.0 supports automatic gzip decompression;

ServerXMLHTTP does not.

由此可见在服务器端用ASP来取得互联网上的任意文件使用ServerXMLHTTP或许更加合适.可以设定过期时间可以让ASP程序更具效率和可靠性

 

 
上一篇:利用fso读取文件总数,并且修改文件名
下一篇:ASP采集功能函数,包含提取地址的原字符,保存远程的文件到本地
【打印】    【关闭】    【字体变小】    【字体变大】

友情链接

首页  |  建站学院  |  网站建设  |  成功案例  |  业务体系  |  软件定制  |  解决方案  |  联系我们  |  免责声明
中成网建公司地址:四川省成都市双楠双安东巷1号18-3-5 电话:028-6616 5255 版权所有 @ 中成网建
成都网站建设网址:www.csccd.net www.csccd.cn 邮箱:web#csccd.net
信息产业部备案号:蜀ICP备08106559号