After buying the eagle book I built a module that will parse any incomming request from a browser, then send a frame set html page with the correct html document in a specific frame. From browsers on my linux box everything works find. From the two Windows clients I've test both Mozilla and IE6, at random times, fail to load some of the images referenced in the html code. This only occurs when using URLs that point to that module, even for the same module on different servers. Normal browsing does not have this problem. Does anyone know what might be causing this?

Module:

package Apache::Content; use strict; use Apache::Constants qw(:common); use Apache::URI(); use Apache::File(); sub handler { my $r = shift; my ($page, $adtitle, $fh); #get the document root of the #requested URL my $document_root = $r->document_root; my $uri = $r->uri; #pars url to get form name and adtitle if ($uri =~ m/\/content\/([^-]+)-([^-]+)/){ $page = $1; $adtitle = $2; } $r->content_type('text/html'); $r->send_http_header; my $path = $r->filename; $path =~ s/(.*?)[^\/]+$/$1/; #open index frameset unless ($fh = Apache::File->new($path."index.html")){ $r->log_error("Can't open index.html: $!"); return SERVER_ERROR; } while (<$fh>){ #change main window from home.html to the page #requested #if url contained vgfrom then pass to #vgform module (Vgform.pm) if ($page =~ m/vgform/io){ s/src="?\/home\.html"?/src=\/$page-$adtitle/io; }else{ s/src="?\/home\.html"?/src=\/$page/io; } $r->print($_); } return OK; } 1;

Neil Watson
watson-wilson.ca


In reply to Modperl and Windows Clients by neilwatson

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.