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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.