|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp可以轻松地实现对页面内容的动态控制,根据不同的浏览者,显示不同的页面内容。而浏览者一点觉察不出来,就像为他专门制作的页面一样。使用各种各样的组件,asp可以完成无比强大的功能。server|变量|客户端以下是MSDN(1999年4月版)供应的IE5所撑持的一切server端变量
部分变量在之前的版本中不撑持,并且在今后的版本中大概会有变更(这是Microsoft的原话)
VariableDescription
ALL_HTTPAllHTTPheaderssentbytheclient.
ALL_RAWRetrievesallheadersintheraw-form.ThedifferencebetweenALL_RAWandALL_HTTPisthatALL_HTTPplacesanHTTP_prefixbeforetheheadernameandtheheader-nameisalwayscapitalized.InALL_RAWtheheadernameandvaluesappearastheyaresentbytheclient.
APPL_MD_PATHRetrievesthemetabasepathforthe(WAM)ApplicationfortheISAPIDLL.
APPL_PHYSICAL_PATHRetrievesthephysicalpathcorrespondingtothemetabasepath.IISconvertstheAPPL_MD_PATHtothephysical(directory)pathtoreturnthisvalue.
AUTH_PASSWORDThevalueenteredintheclientsauthenticationdialog.ThisvariableisonlyavailableifBasicauthenticationisused.
AUTH_TYPETheauthenticationmethodthattheserverusestovalidateuserswhentheyattempttoaccessaprotectedscript.
AUTH_USERRawauthenticatedusername.
CERT_COOKIEUniqueIDforclientcertificate,Returnedasastring.Canbeusedasasignatureforthewholeclientcertificate.
CERT_FLAGSbit0issetto1iftheclientcertificateispresent.
bit1issetto1iftheCertificateAuthorityoftheclientcertificateisinvalid(notinthelistofrecognizedCAontheserver).
CERT_ISSUERIssuerfieldoftheclientcertificate(O=MS,OU=IAS,CN=username,C=USA).
CERT_KEYSIZENumberofbitsinSecureSocketsLayerconnectionkeysize.Forexample,128.
CERT_SECRETKEYSIZENumberofbitsinservercertificateprivatekey.Forexample,e.g.1024.
CERT_SERIALNUMBERSerialnumberfieldoftheclientcertificate.
CERT_SERVER_ISSUERIssuerfieldoftheservercertificate.
CERT_SERVER_SUBJECTSubjectfieldoftheservercertificate.
CERT_SUBJECTSubjectfieldoftheclientcertificate.
CONTENT_LENGTHThelengthofthecontentasgivenbytheclient.
CONTENT_TYPEThedatatypeofthecontent.Usedwithqueriesthathaveattachedinformation,suchastheHTTPqueriesGET,POST,andPUT.
GATEWAY_INTERFACETherevisionoftheCGIspecificationusedbytheserver.TheformatisCGI/revision.
HTTP_<HeaderName>ThevaluestoredintheheaderHeaderName.AnyheaderotherthanthoselistedinthistablemustbeprefixedbyHTTP_inorderfortheServerVariablescollectiontoretrieveitsvalue.
NoteTheserverinterpretsanyunderscore(_)charactersinHeaderNameasdashesintheactualheader.ForexampleifyouspecifyHTTP_MY_HEADER,theserversearchesforaheadersentasMY-HEADER.
HTTP_ACCEPTReturnsthevalueoftheAcceptheader.
HTTP_ACCEPT_LANGUAGEReturnsastringdescribingthelanguagetousefordisplayingcontent.
HTTP_USER_AGENTReturnsastringdescribingthebrowserthatsenttherequest.
HTTP_COOKIEReturnsthecookiestringthatwasincludedwiththerequest.
HTTP_REFERERReturnsastringcontainingtheURLoftheoriginalrequestwhenaredirecthasoccurred.
HTTPSReturnsONiftherequestcameinthroughsecurechannel(SSL)oritreturnsOFFiftherequestisforanon-securechannel.
HTTPS_KEYSIZENumberofbitsinSecureSocketsLayerconnectionkeysize.Forexample,128.
HTTPS_SECRETKEYSIZENumberofbitsinservercertificateprivatekey.Forexample,1024.
HTTPS_SERVER_ISSUERIssuerfieldoftheservercertificate.
HTTPS_SERVER_SUBJECTSubjectfieldoftheservercertificate.
INSTANCE_IDTheIDfortheIISinstanceintextualformat.IftheinstanceIDis1,itappearsasastring.YoucanusethisvariabletoretrievetheIDoftheWeb-serverinstance(inthemetabase)towhichtherequestbelongs.
INSTANCE_META_PATHThemetabasepathfortheinstanceofIISthatrespondstotherequest.
LOCAL_ADDRReturnstheServerAddressonwhichtherequestcamein.ThisisimportantonmultihomedmachineswheretherecanbemultipleIPaddressesboundtoamachineandyouwanttofindoutwhichaddresstherequestused.
LOGON_USERTheWindowsNT |
|