J. Blustein

Web-centric Computing

[Course | Announcements | Materials | Resources]

Example Code

Information Available With Form Processing

  1. Command line arguments
  2. Environment variables
  3. Data at standard input
  1. Number of Command Line Arguments = 0

    There are no command line arguments.

  2. Environment Variables are:

    Environment Variables
    Name Value
    SCRIPT_NAME /~jamie/cgi-bin/3172/form/upload2.cgi
    SERVER_NAME web.cs.dal.ca
    SERVER_ADMIN cshelp@cs.dal.ca
    HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
    REQUEST_METHOD GET
    HTTP_ACCEPT */*
    SCRIPT_FILENAME /users/webhome/jamie/cgi-bin/3172/form/upload2.cgi
    CONTEXT_PREFIX /~jamie
    REQUEST_SCHEME https
    SERVER_SOFTWARE Apache
    QUERY_STRING
    REMOTE_PORT 3296
    HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    SERVER_PORT 443
    SERVER_SIGNATURE
    REMOTE_ADDR 18.117.156.31
    CONTEXT_DOCUMENT_ROOT /users/webhome/jamie
    SERVER_PROTOCOL HTTP/2.0
    PATH /usr/local/bin:/usr/bin:/bin
    REQUEST_URI /~jamie/cgi-bin/3172/form/upload2.cgi
    GATEWAY_INTERFACE CGI/1.1
    HTTPS on
    SERVER_ADDR 129.173.22.11
    DOCUMENT_ROOT /local/data/web.cs.dal.ca/web/
    HTTP_HOST web.cs.dal.ca
    SSL_TLS_SNI web.cs.dal.ca
    UNIQUE_ID Zy4ue3SVO-5EgnQuaxe4XAAADw8
  3. 3. Data at Standard Input

    There is no data at standard input.

[ Back to file upload | three-penny form example]


http://www.cs.dal.ca/~jamie/cgi-bin/3172/form/upload2.cgi
Version:
30 May 2003
Prof.:
J. Blustein <jamie@cs.dal.ca>
This webpage uses valid XHTML 1.0