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 = 51
  1. ALL_HTTP = HTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_ACCEPT:Accept: application/xhtml+xml,text/html;q=0.9,text/plain; HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_HOST:www.phdcc.com HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
  2. ALL_RAW = Cache-Control: no-cache Connection: close Pragma: no-cache Accept: Accept: application/xhtml+xml,text/html;q=0.9,text/plain; Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip Accept-Language: en-us,en;q=0.5 Host: www.phdcc.com User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
  3. APPL_MD_PATH = /LM/W3SVC/39/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 = 39
  26. INSTANCE_META_PATH = /LM/W3SVC/39
  27. LOCAL_ADDR = 67.199.28.2
  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 = 38.103.63.59
  33. REMOTE_HOST = 38.103.63.59
  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.1
  41. SERVER_SOFTWARE = Microsoft-IIS/6.0
  42. URL = /dynamic-cd/dcddoc/bioDoc/reqTst.asp
  43. HTTP_CACHE_CONTROL = no-cache
  44. HTTP_CONNECTION = close
  45. HTTP_PRAGMA = no-cache
  46. HTTP_ACCEPT = Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
  47. HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7
  48. HTTP_ACCEPT_ENCODING = gzip
  49. HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
  50. HTTP_HOST = www.phdcc.com
  51. HTTP_USER_AGENT = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)


    TotalBytes, BinaryRead
    Your first name:
    Your last name:
     


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

    SERVER_SOFTWARE = Microsoft-IIS/6.0


    © Copyright 2000-2003 PHD Computer Consultants Ltd