Purple Code

com.purpletech.net
Class EchoCGI

java.lang.Object
  |
  +--com.purpletech.net.EchoCGI

public class EchoCGI
extends java.lang.Object

A simple CGI script. Uses POST protocol. Lives on the web server. Echoes its parameters. Note: to activate, you need to provide a wrapper script, as follows:

    UNIX: echo.cgi
    #!/bin/bash
    cat - | java EchoCGI

    DOS: echo.bat
    java EchoCGI
    
May need to set up PATH and CLASSPATH as well, depending on configuration.

Version:
1.0 Oct 1997
Author:
Alex Chaffee (alex@stinky.com)

Constructor Summary
EchoCGI()
           
 
Method Summary
static java.lang.String decode(java.lang.String s)
           
static void main(java.lang.String[] args)
           
static java.util.Dictionary parseQuery(java.lang.String in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoCGI

public EchoCGI()
Method Detail

decode

public static java.lang.String decode(java.lang.String s)

parseQuery

public static java.util.Dictionary parseQuery(java.lang.String in)

main

public static void main(java.lang.String[] args)

Documentation generated March 5 2003