Java Source | Shell Script | Description | Online Example |
---|---|---|---|
SearchYahoo.java | N/A | A simple example of an applet as a CGI client. An applet interface to the Yahoo search engine. | SearchYahoo.html |
CGIShow.java | N/A | Generates an HTML page by printing it to standard output (plus a Content-Type line). Used by all of the following programs. | N/A |
CGIGet1.java | CGIGet1 | Used to process GET requests that do not contain "=" in the data (ie the HTTP server sends the data as command line arguments). | Attaches '?foo+bar'. |
CGIGet2.java | CGIGet2 | Used to process GET requests that contain "=" in the data (ie the HTTP server puts the data in the QUERY_STRING environment variable). | Attaches '?x=foo&y=bar'. |
IsIndex.java | IsIndex | Uses the HTML ISINDEX tag to generate GET requests. | Enter data interactively. |
CGIPost.java | CGIPost | Used to process POST requests. Assumes connecting client sends exactly one line of data (as an HTML FORM would). | Connect from a FORM to see this. |