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 = 3

  1. truthValue ~ True
  2. curValue ~ 12.34
  3. firstDecemberDate ~ 12/1/2002


Form
Your first name:
What is your favorite flavour of ice cream:
What is your favorite flavour of jam:
What is your favorite flavour of jam:
What is your favorite flavour of tea:
 


QueryString

Test sending a query string


ServerVariables

Iterating through the ServerVariables collection :
Number of ServerVariables = 56
  • ALL_HTTP = HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, br HTTP_COOKIE:truthValue=True; curValue=12%2E34; ASPSESSIONIDCSRTRDAA=CMBJBBBDMAJCCPIGAPDCKJBM; firstDecemberDate=12%2F1%2F2002 HTTP_HOST:www.phdcc.uk HTTP_USER_AGENT:Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) HTTP_X_FORWARDED_FOR:216.73.216.168 HTTP_CF_RAY:97ef483d9c3c5431-YYZ HTTP_CDN_LOOP:cloudflare; loops=1 HTTP_CF_CONNECTING_IP:216.73.216.168 HTTP_CF_IPCOUNTRY:US HTTP_CF_VISITOR:{"scheme":"https"} HTTP_X_FORWARDED_PROTO:https HTTP_X_REWRITE_URL:/Dynamic-CD/dcddoc/biodoc/reqTst.asp
  • ALL_RAW = Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, br Cookie: truthValue=True; curValue=12%2E34; ASPSESSIONIDCSRTRDAA=CMBJBBBDMAJCCPIGAPDCKJBM; firstDecemberDate=12%2F1%2F2002 Host: www.phdcc.uk User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) x-forwarded-for: 216.73.216.168 cf-ray: 97ef483d9c3c5431-YYZ cdn-loop: cloudflare; loops=1 cf-connecting-ip: 216.73.216.168 cf-ipcountry: US cf-visitor: {"scheme":"https"} X-Forwarded-Proto: https X-REWRITE-URL: /Dynamic-CD/dcddoc/biodoc/reqTst.asp
  • APPL_MD_PATH = /LM/W3SVC/1055295309/ROOT
  • APPL_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 = 0
  • CONTENT_TYPE =
  • GATEWAY_INTERFACE = CGI/1.1
  • HTTPS = off
  • HTTPS_KEYSIZE =
  • HTTPS_SECRETKEYSIZE =
  • HTTPS_SERVER_ISSUER =
  • HTTPS_SERVER_SUBJECT =
  • INSTANCE_ID = 1055295309
  • INSTANCE_META_PATH = /LM/W3SVC/1055295309
  • LOCAL_ADDR = 208.98.35.71
  • LOGON_USER =
  • PATH_INFO = /Dynamic-CD/dcddoc/biodoc/reqTst.asp
  • PATH_TRANSLATED = h:\root\home\phdccltd-001\www\phdccUK\Dynamic-CD\dcddoc\biodoc\reqTst.asp
  • QUERY_STRING =
  • REMOTE_ADDR = 108.162.242.61
  • REMOTE_HOST = 108.162.242.61
  • REMOTE_USER =
  • REQUEST_METHOD = GET
  • SCRIPT_NAME = /Dynamic-CD/dcddoc/biodoc/reqTst.asp
  • SERVER_NAME = www.phdcc.uk
  • SERVER_PORT = 80
  • SERVER_PORT_SECURE = 0
  • SERVER_PROTOCOL = HTTP/1.1
  • SERVER_SOFTWARE = Microsoft-IIS/10.0
  • URL = /Dynamic-CD/dcddoc/biodoc/reqTst.asp
  • HTTP_CONNECTION = Keep-Alive
  • HTTP_ACCEPT = */*
  • HTTP_ACCEPT_ENCODING = gzip, br
  • HTTP_COOKIE = truthValue=True; curValue=12%2E34; ASPSESSIONIDCSRTRDAA=CMBJBBBDMAJCCPIGAPDCKJBM; firstDecemberDate=12%2F1%2F2002
  • HTTP_HOST = www.phdcc.uk
  • HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
  • HTTP_X_FORWARDED_FOR = 216.73.216.168
  • HTTP_CF_RAY = 97ef483d9c3c5431-YYZ
  • HTTP_CDN_LOOP = cloudflare; loops=1
  • HTTP_CF_CONNECTING_IP = 216.73.216.168
  • HTTP_CF_IPCOUNTRY = US
  • HTTP_CF_VISITOR = {"scheme":"https"}
  • HTTP_X_FORWARDED_PROTO = https
  • HTTP_X_REWRITE_URL = /Dynamic-CD/dcddoc/biodoc/reqTst.asp


    TotalBytes, BinaryRead
    Your first name:
    Your last name:
     


    Finding a Request variable by scanning all collections
    (Not recommended)

    SERVER_SOFTWARE = Microsoft-IIS/10.0


    © Copyright 2000-2003 PHD Computer Consultants Ltd