|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用filesystemobject,可以对服务器上的文件进行操作,浏览、复制、移动、删除等。有ado的支持,asp对数据库的操作非常得心应手。你甚至可以像使用本地数据库那样,管理远程主机上的数据库,对表格、记录进行各种操作。在服务器端用ASP来获得互联网上的恣意文件利用ServerXMLHTTP也许加倍符合.能够设定过时工夫可让ASP程序更具效力和牢靠性,以下表所示:
1
WorksonWindows98,95andME
RequiresatleastWindowsNT4withIE5.01.
2
Doesnothaveameansofwaitingforanasynccallotherthanusinganotherthreadtohandletheresponseviaonreadystatechange.
Anothertechniqueistolooponthemainthread,pollingthereadystateproperty.
Forexample:
Whilexmlhttp.readystate4
asyncrequestnotcompleteyet;stillwaiting
Wend
ButthisisnotasefficientastheServerXMLHTTPsWaitForResponsemethod
HasawaitForResponsemethodwithatimeoutwhenusingasynccalls.
3
Allowsconfiguringtimeoutswhensendingmessages.
4
Isdesignedforsingle-user,desktopapplications,suchasrunninginabrowser-basedapp.
XMLHTTPsassumptionthatitisusedonlyinsingle-userenvironmentshassecurityimplications.
DonotuseXMLHTTPinmulti-userscenariossuchasonIIS/ASPservers.
Also,invariouscases,XMLHTTPmaydisplayUIdialogs(tocollectcredentials).
Supportsmulti-user,server-basedapplications,suchasASPapps.
5
BecauseXMLHTTPisdesignedforsingle-userclientapplicationsandisbasedonWinInet,itenforcesstrictlimitsonthenumberofsimultaneousconnectionstoagivenserver.
Thelimitiseither2or4(dependingonHTTPversion).
TheServerXMLHTTPcomponentdoesnotimposeanylimitsonthenumberofconnectionstoaserver.
6
XMLHTTPintegrateswiththeIEbrowserscache,whichmaycauseproblemsinwhich"stale"responsedataisreturned.
ServerXMLHTTPdoesnotimplementacache.
7
XMLHTTPisHTTP/1.1compliant.
XMLHTTPdoessupportHTTP/1.1chunking.
ServerXMLHTTPreportsitselfasanHTTP/1.0client.
ThereasonisthatServerXMLHTTPdoesnotsupporttheHTTP/1.1response"chunking"feature,whichisrequiredfor1.1compliance.
8
ByusingtheIEbrowsersproxysettings,XMLHTTPcantakeadvantageofIEsauto-detectionofproxyservers.
IfIEisconfiguredtoaccesssitesviaaproxyserver,thenallrequestsmadeviaXMLHTTPwillalsogothroughtheproxy.
However,IE(andthusXMLHTTP)canbeconfiguredtobypasstheproxyserverforcertainsites(assumingthatadirectconnectiontothetargetservercanbemade).
Thisisdoneinthe"Tools/InternetOptions/Connections/LANSettings"dialoginIE.
The"Bypassproxyserverforlocaladdresses"optionshouldbecheckedtohavetheproxyserverbypassedforintranetsites.
ServerXMLHTTPdoesnotsupportanyauto-detectionordiscoveryofproxyservers;youmustexplicitlyspecifythenameoftheproxyserverusingtheproxycfg.exeutility.
CanbeconfiguredwithWinHTTPproxyconfigtoaccessothermachinesdirectly(noproxyserver).
9
TheXMLHTTPcomponentinMSXML3.0supportsautomaticgzipdecompression;
ServerXMLHTTPdoesnot.
因而可知在服务器端用ASP来获得互联网上的恣意文件利用ServerXMLHTTP也许加倍符合.能够设定过时工夫可让ASP程序更具效力和牢靠性
结论:和PHP一样,ASP简单而易于维护,很适合小型网站应用,通过DCOM和MTS技术,ASP甚至还可以完成小规模的企业应用,但ASP的致命缺点就是不支持跨平台的系统,在大型项目开发和维护上非常困难。 |
|