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 = 46
  1. ALL_HTTP = HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_ENCODING:x-gzip, gzip, deflate HTTP_HOST:www.phdcc.com HTTP_USER_AGENT:CCBot/2.0 (http://commoncrawl.org/faq/)
  2. ALL_RAW = Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: x-gzip, gzip, deflate Host: www.phdcc.com User-Agent: CCBot/2.0 (http://commoncrawl.org/faq/)
  3. APPL_MD_PATH = /LM/W3SVC/260/ROOT
  4. APPL_PHYSICAL_PATH = D:\inetpub\phdcc\
  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 = 260
  26. INSTANCE_META_PATH = /LM/W3SVC/260
  27. LOCAL_ADDR = 216.119.68.56
  28. LOGON_USER =
  29. PATH_INFO = /dynamic-cd/dcddoc/biodoc/reqTst.asp
  30. PATH_TRANSLATED = D:\inetpub\phdcc\dynamic-cd\dcddoc\biodoc\reqTst.asp
  31. QUERY_STRING =
  32. REMOTE_ADDR = 54.81.110.114
  33. REMOTE_HOST = 54.81.110.114
  34. REMOTE_USER =
  35. REQUEST_METHOD = GET
  36. SCRIPT_NAME = /dynamic-cd/dcddoc/biodoc/reqTst.asp
  37. SERVER_NAME = www.phdcc.com
  38. SERVER_PORT = 80
  39. SERVER_PORT_SECURE = 0
  40. SERVER_PROTOCOL = HTTP/1.0
  41. SERVER_SOFTWARE = Microsoft-IIS/7.5
  42. URL = /dynamic-cd/dcddoc/biodoc/reqTst.asp
  43. HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  44. HTTP_ACCEPT_ENCODING = x-gzip, gzip, deflate
  45. HTTP_HOST = www.phdcc.com
  46. HTTP_USER_AGENT = CCBot/2.0 (http://commoncrawl.org/faq/)


    TotalBytes, BinaryRead
    Your first name:
    Your last name:
     


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

    SERVER_SOFTWARE = Microsoft-IIS/7.5


    © Copyright 2000-2003 PHD Computer Consultants Ltd