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
    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 = 54
  1. ALL_HTTP = HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, br 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:18.188.103.74 HTTP_CF_RAY:93f2c8b00f10dcf3-ORD HTTP_X_FORWARDED_PROTO:https HTTP_CDN_LOOP:cloudflare; loops=1 HTTP_CF_CONNECTING_IP:18.188.103.74 HTTP_CF_IPCOUNTRY:US HTTP_CF_VISITOR:{"scheme":"https"} HTTP_X_REWRITE_URL:/Dynamic-CD/dcddoc/bioDoc/reqTst.asp
  2. ALL_RAW = Accept: */* Accept-Encoding: gzip, br Host: www.phdcc.uk User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) x-forwarded-for: 18.188.103.74 cf-ray: 93f2c8b00f10dcf3-ORD x-forwarded-proto: https cdn-loop: cloudflare; loops=1 cf-connecting-ip: 18.188.103.74 cf-ipcountry: US cf-visitor: {"scheme":"https"} X-REWRITE-URL: /Dynamic-CD/dcddoc/bioDoc/reqTst.asp
  3. APPL_MD_PATH = /LM/W3SVC/1055295309/ROOT
  4. APPL_PHYSICAL_PATH = h:\root\home\phdccltd-001\www\phdccUK\
  5. AUTH_PASSWORD =
  6. AUTH_TYPE =
  7. AUTH_USER =
  8. CERT_COOKIE =
  9. CERT_FLAGS =
  10. CERT_ISSUER =
  11. CERT_KEYSIZE =
  12. CERT_SECRETKEYSIZE =
  13. CERT_SERIALNUMBER =
  14. CERT_SERVER_ISSUER =
  15. CERT_SERVER_SUBJECT =
  16. CERT_SUBJECT =
  17. CONTENT_LENGTH = 0
  18. CONTENT_TYPE =
  19. GATEWAY_INTERFACE = CGI/1.1
  20. HTTPS = off
  21. HTTPS_KEYSIZE =
  22. HTTPS_SECRETKEYSIZE =
  23. HTTPS_SERVER_ISSUER =
  24. HTTPS_SERVER_SUBJECT =
  25. INSTANCE_ID = 1055295309
  26. INSTANCE_META_PATH = /LM/W3SVC/1055295309
  27. LOCAL_ADDR = 208.98.35.71
  28. LOGON_USER =
  29. PATH_INFO = /Dynamic-CD/dcddoc/bioDoc/reqTst.asp
  30. PATH_TRANSLATED = h:\root\home\phdccltd-001\www\phdccUK\Dynamic-CD\dcddoc\bioDoc\reqTst.asp
  31. QUERY_STRING =
  32. REMOTE_ADDR = 172.69.59.88
  33. REMOTE_HOST = 172.69.59.88
  34. REMOTE_USER =
  35. REQUEST_METHOD = GET
  36. SCRIPT_NAME = /Dynamic-CD/dcddoc/bioDoc/reqTst.asp
  37. SERVER_NAME = www.phdcc.uk
  38. SERVER_PORT = 80
  39. SERVER_PORT_SECURE = 0
  40. SERVER_PROTOCOL = HTTP/1.1
  41. SERVER_SOFTWARE = Microsoft-IIS/10.0
  42. URL = /Dynamic-CD/dcddoc/bioDoc/reqTst.asp
  43. HTTP_ACCEPT = */*
  44. HTTP_ACCEPT_ENCODING = gzip, br
  45. HTTP_HOST = www.phdcc.uk
  46. HTTP_USER_AGENT = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
  47. HTTP_X_FORWARDED_FOR = 18.188.103.74
  48. HTTP_CF_RAY = 93f2c8b00f10dcf3-ORD
  49. HTTP_X_FORWARDED_PROTO = https
  50. HTTP_CDN_LOOP = cloudflare; loops=1
  51. HTTP_CF_CONNECTING_IP = 18.188.103.74
  52. HTTP_CF_IPCOUNTRY = US
  53. HTTP_CF_VISITOR = {"scheme":"https"}
  54. 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