Execution of LOCAL forms WITHOUT http-server by libwww?

Frank Majewski (fmajewsk@awi-bremerhaven.de)
Thu, 21 Jul 94 14:46:13 +0200


Hi,

I plan to create a CD-version of BIG oceanographical pictures (GIFs) using
Mosaic (or something like that) for browsing on DIFFERENT operating systems
(Sun, Mac, DOS/WINDOWS, WINDOWS NT...). I try to realize it one for all those
os's, so I don't want to have several (non portable) versions of the 'same'
data (but having browsers for each os on the CD!). Because I make extensive
use of FORM's, I have BIG problem:

I have just installed your famous ;-) libwww-perl0.20 and found wwwfile.pl which
seems to be 'a package for performing local file requests (URLs ...) and returning
a response as if it came from an HTTP server' --- BUT HOW can I start a perl-script
by "<form method=POST ACTION="WHICH_PROTOCOL://localhost./THE_DIR/dotheperlscript.pl">"
in Mosaic (or the other browser's) WITHOUT having a HTTP server running on my 
laptop???

The trivial try of saying 
'<form method=GET action="file://localhost/THE_DIR/dotheperlscript.perl">' 
only brings up the (expected) ORDERED file, so HOW can this dilemma be solved?

I thought about setting up local ".mailcap" or "mime.types" to create
an explicit application named "application/perl; THE_LOCAL_PATH_OF/perl" to
start an external 'viewer' (program -> perl) which evaluates the given
arguments and send back the ordered data to the browser (by starting a new
browser for e.g. (yes, it's ugly, but only a 1st try!) but can't this
be done easier???

Am I right? 
Or is this much too complicated? 
Any suggestions?


Cheers,

Frank Majewski
fmajewsk@awi-bremerhaven.de