Example of using the Request Object
View the source code
ClientCertificate
Iterating through the ClientCertificate collection :
Number of ClientCertificates = 0
To test whether a client certificate has been presented.
No client certificate was presented
Cookies
To determine whether a cookie is a cookie dictionary (whether the cookie has keys), use the following script.
HasKeys = False
Iterating through the Cookie collection :
Number of Cookies = 0
Form
QueryString
Test sending a query string
ServerVariables
Iterating through the ServerVariables collection :
Number of ServerVariables = 55ALL_HTTP = HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip, br
HTTP_HOST:www.phdcc.uk
HTTP_USER_AGENT:claudebot
HTTP_X_FORWARDED_FOR:3.235.229.251
HTTP_CF_RAY:86c006452c2057af-IAD
HTTP_X_FORWARDED_PROTO:https
HTTP_CF_VISITOR:{"scheme":"https"}
HTTP_CF_CONNECTING_IP:3.235.229.251
HTTP_CDN_LOOP:cloudflare
HTTP_CF_IPCOUNTRY:US
HTTP_X_REWRITE_URL:/Dynamic-CD/dcddoc/biodoc/reqTst.asp
ALL_RAW = Connection: Keep-Alive
Accept: */*
Accept-Encoding: gzip, br
Host: www.phdcc.uk
User-Agent: claudebot
X-Forwarded-For: 3.235.229.251
CF-RAY: 86c006452c2057af-IAD
X-Forwarded-Proto: https
CF-Visitor: {"scheme":"https"}
CF-Connecting-IP: 3.235.229.251
CDN-Loop: cloudflare
CF-IPCountry: US
X-REWRITE-URL: /Dynamic-CD/dcddoc/biodoc/reqTst.asp
APPL_MD_PATH = /LM/W3SVC/1055295309/ROOTAPPL_PHYSICAL_PATH = h:\root\home\phdccltd-001\www\phdccUK\AUTH_PASSWORD = AUTH_TYPE = AUTH_USER = CERT_COOKIE = CERT_FLAGS = CERT_ISSUER = CERT_KEYSIZE = CERT_SECRETKEYSIZE = CERT_SERIALNUMBER = CERT_SERVER_ISSUER = CERT_SERVER_SUBJECT = CERT_SUBJECT = CONTENT_LENGTH = 0CONTENT_TYPE = GATEWAY_INTERFACE = CGI/1.1HTTPS = offHTTPS_KEYSIZE = HTTPS_SECRETKEYSIZE = HTTPS_SERVER_ISSUER = HTTPS_SERVER_SUBJECT = INSTANCE_ID = 1055295309INSTANCE_META_PATH = /LM/W3SVC/1055295309LOCAL_ADDR = 205.144.171.166LOGON_USER = PATH_INFO = /Dynamic-CD/dcddoc/biodoc/reqTst.aspPATH_TRANSLATED = h:\root\home\phdccltd-001\www\phdccUK\Dynamic-CD\dcddoc\biodoc\reqTst.aspQUERY_STRING = REMOTE_ADDR = 162.158.78.28REMOTE_HOST = 162.158.78.28REMOTE_USER = REQUEST_METHOD = GETSCRIPT_NAME = /Dynamic-CD/dcddoc/biodoc/reqTst.aspSERVER_NAME = www.phdcc.ukSERVER_PORT = 80SERVER_PORT_SECURE = 0SERVER_PROTOCOL = HTTP/1.1SERVER_SOFTWARE = Microsoft-IIS/10.0URL = /Dynamic-CD/dcddoc/biodoc/reqTst.aspHTTP_CONNECTION = Keep-AliveHTTP_ACCEPT = */*HTTP_ACCEPT_ENCODING = gzip, brHTTP_HOST = www.phdcc.ukHTTP_USER_AGENT = claudebotHTTP_X_FORWARDED_FOR = 3.235.229.251HTTP_CF_RAY = 86c006452c2057af-IADHTTP_X_FORWARDED_PROTO = httpsHTTP_CF_VISITOR = {"scheme":"https"}HTTP_CF_CONNECTING_IP = 3.235.229.251HTTP_CDN_LOOP = cloudflareHTTP_CF_IPCOUNTRY = USHTTP_X_REWRITE_URL = /Dynamic-CD/dcddoc/biodoc/reqTst.asp
TotalBytes, BinaryRead
Finding a Request variable by scanning all collections
(Not recommended)
SERVER_SOFTWARE = Microsoft-IIS/10.0
© Copyright 2000-2003
PHD Computer Consultants Ltd