As long as you are blessed with IE, it is not that hard to write your own browser, even though it does not use http. In Hand off HTML to Internet Explorer, I have an example how to write HTML into IE, thus using IE as your frontend for display.
The hard part comes when you need to capture the events of IE, mostly, whenever a link is clicked. I recommend using a custom protocol for all "local" links (for example local://, so your script can decide whether to let IE handle the request itself or substitute your own HTML as the result of running a program by creating a local faked request. Roth consulting has some sample code on their website at http://www.roth.net/perl/scripts/scripts.asp?IEEvents.pl.
To convert these events into CGI requests to your local server, either construct LWP requests from them or create CGI objects and hand them off to your (embedded) CGI code.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
In reply to Re: Replacement for HTTP-Server in local environment
by Corion
in thread Replacement for HTTP-Server in local environment
by Brutha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |