Click here to get back home

IIS + Cache + W2003 + HTML header problem

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
IIS + Cache + W2003 + HTML header problem miktro 05-08-2006
Posted by miktro on May 8, 2006, 8:24 am
Please log in for more thread options


I have some bizarre behaviour in a CGI script running on
IIS 6.0 under Windows Server 2003.
(Everything was working OK for two years under Windows 2000.)

I am producing reports in XML format.
I am using Cache::Cache to save the XML output for each report.

Everything works fine
BUT
when a cached report expires I get an error in my perl program.

I have stuck in many debugging messages and found that:
a) - the cache stuff seems to be working OK.
b) - the error occurs when printing the HTML headers

Specifically - in the following lines of code
Files v7a,v7b,v7c,v7d.xml are all produced - and v8a.xml is NOT.
However if (earlier in the program) I comment out the line that saves the
output to the cache
then everything else works (i.e. file v8a.xml IS produced and I get my
output in the browser).


Anyone got ANY idea what could be causing this?


=========== Code Follows ===================
# $FDBG = 1
$values->save("v7a.xml") if $FDBG;
printf "Set-Cookie: %s\n",$USER->dlnewcookie;
$values->save("v7b.xml") if $FDBG;
#printf "Set-Cookie: %s\n",$USER->password_cookie;
#$VAL->save("v7c.xml") if $FDBG;

eval { print "Content-type: text/xml;\n"; } ;
if ($@)        {
        printf $FDBG "EVAL Error:\n%s\n",$@ if $FDBG;
        }

$values->save("v7d.xml") if $FDBG;
printf "\n";
### The next line is not executed if saving to Cache.
$values->save("v8a.xml") if $FDBG

Similar ThreadsPosted
install HTML::Template - Problem reading cache file / Bad file number July 24, 2004, 7:55 pm
CGI::AJAX and header June 16, 2006, 4:06 pm
Parsing AVI header information June 8, 2008, 11:08 pm
HTTP::Cache module September 26, 2004, 8:37 am
Accessing the Memoize cache April 2, 2005, 1:15 am
HTTP Header variables empty ( randomly ) with mod_perl November 18, 2006, 5:51 pm
file upload, multipart form, and cgi::cache April 21, 2006, 7:01 am
HTML::FormatText problem May 6, 2006, 4:09 pm
HTML-Parser-3.56 build problem February 6, 2007, 4:32 am
Problem with body text extraction with HTML::Parser December 13, 2005, 3:28 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap