Applet HTML question
I'd want to have all the HTTP GETs from a browser loading an html page containing an applet go thru a cgi script both for the HTML and the java classes.
How do I code that?
This HTML will send the browser to the cgi for the HTML:
This is the HTTP GET created by the above:
GET /cgi-bin/GetAFile.pl?Testing\AppletLoader.html HTTP/1.1
Now I'd like the browser to issue this GET:
GET /cgi-bin/GetAFile.pl?Testing/AppletLoader.class HTTP/1.1
How do I code the HTML to cause the browser to issue this GET?
My attempts at using the code= and codebase= have failed:
//This one failed html=codebase="GetAFile.pl%3f"
GET /cgi-bin/GetAFile.pl%3f/AppletLoader.class HTTP/1.1 <<< Close?
//This one failed html=codebase="GetAFile.pl?" how to send a ?
Browser does two gets:
First: GET /cgi-bin/AppletLoader.class HTTP/1.1
Second: GET /cgi-bin/AppletLoader/class.class HTTP/1.1
//Failed html=<APPLET CODE="cgi-bin/GetAFile.pl?AppletLoader.class"
GET /cgi-bin/cgi-bin/GetAFile/pl?AppletLoader.class HTTP/1.1
Note: .pl changed to /pl???
// Failed html=codebase="GetAFile.pl?"
GET /cgi-bin/AppletLoader.class HTTP/1.1
//Almost?? html=codebase="GetAFile.pl%3FTesting/" <<< should %3f Be decoded by server??
GET /cgi-bin/GetAFile.pl%3FTesting/AppletLoader.class HTTP/1.1
I may be barking up the wrong tree here,....
...but what you want to do is have a perl script that reads the html page
specified and returns it to the client... right ?
After the question mark following the script spec I see no name/value pairs,
just a value, should not this be like:
<script path>?name1=value1&name2=value2 (etc.) ?
I'm not sure that there is that requirement in the query string (what follows the ?), but I'll give it a try.
The key=value pairs are generated by a <Form.
The handshake between the URL and the cgi is up to the programmer.
The following <applet tag attribute has the browser issue a GET that goes to the cgi-bin on an Apache server. Now I need some perl code to be able to handle all the GETs for the needed class files in the Applet. The HTML page was loaded by a perl script in \cgi-bin\
By Tataroz T. in forum Java
Last Post: 10-20-2005, 06:19 AM
By crash75uk in forum Java
Last Post: 04-20-2005, 03:32 PM
Last Post: 06-09-2002, 04:41 AM
By Eddie in forum Architecture and Design
Last Post: 10-18-2001, 07:36 PM
Last Post: 05-06-2000, 10:36 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL