home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / jdk113 / root / opt / jdk-1.1.3 / bin / java-rmi.cgi < prev    next >
Encoding:
Text File  |  1998-08-19  |  1.6 KB  |  46 lines

  1. #!/bin/sh
  2. #
  3. # This script executes the Java interpreter, defines properties
  4. # that correspond to the CGI 1.0 environment variables, and executes
  5. # the class "sun.rmi.transport.proxy.CGIHandler".  It should be
  6. # installed in the directory to which the HTTP server maps the
  7. # URL path "/cgi-bin".
  8. #
  9. # (Configuration is necessary as noted below.)
  10. #
  11. # This class will support a QUERY_STRING of the form "forward=<port>"
  12. # with a REQUEST_METHOD "POST".  The body of the request will be
  13. # forwarded (as another POST request) to the server listening on the
  14. # specified port (must be >= 1024).  The response from this forwarded
  15. # request will be the response to the original request.
  16. #
  17. # CONFIGURATION:
  18. #
  19. # Fill in correct absolute path to Java interpreter below.  For example,
  20. # the "PATH=" line might be changed to the follow if the JDK is installed
  21. # at the path "/home/peter/java":
  22. #
  23. # PATH=/home/peter/java/bin:$PATH
  24. #
  25. PATH=/usr/local/java/bin:$PATH
  26. java \
  27.     -DAUTH_TYPE="$AUTH_TYPE" \
  28.     -DCONTENT_LENGTH="$CONTENT_LENGTH" \
  29.     -DCONTENT_TYPE="$CONTENT_TYPE" \
  30.     -DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \
  31.     -DHTTP_ACCEPT="$HTTP_ACCEPT" \
  32.     -DPATH_INFO="$PATH_INFO" \
  33.     -DPATH_TRANSLATED="$PATH_TRANSLATED" \
  34.     -DQUERY_STRING="$QUERY_STRING" \
  35.     -DREMOTE_ADDR="$REMOTE_ADDR" \
  36.     -DREMOTE_HOST="$REMOTE_HOST" \
  37.     -DREMOTE_IDENT="$REMOTE_IDENT" \
  38.     -DREMOTE_USER="$REMOTE_USER" \
  39.     -DREQUEST_METHOD="$REQUEST_METHOD" \
  40.     -DSCRIPT_NAME="$SCRIPT_NAME" \
  41.     -DSERVER_NAME="$SERVER_NAME" \
  42.     -DSERVER_PORT="$SERVER_PORT" \
  43.     -DSERVER_PROTOCOL="$SERVER_PROTOCOL" \
  44.     -DSERVER_SOFTWARE="$SERVER_SOFTWARE" \
  45.     sun.rmi.transport.proxy.CGIHandler
  46.