Ask a Question related to PERL Modules, Design and Development.
-
miktro #1
IIS + Cache + W2003 + HTML header problem
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
miktro Guest
-
HTML Help! with navigation and header file
Hi - I recently posted about some help I needed with my navigation/header file in my volusion template. I have all of the graphic design files in... -
Clob problem, CFMX 6.1 and Oracle on a W2003 server
Hello, we use CFMX 6.1 on a Windows 2003 server. With a database: Oracle 9.2 , and MX connects to the database by means of JDBC and an Oracle... -
install HTML::Template - Problem reading cache file / Bad file number
i get the following error when i try to install HTML::Template to my local space, ie, not as root: +---------------------------- % perl -MCPAN... -
HTTP Header being displayed at top of HTML
After rebuilding our web server from NT 4.0 IIS 4.0 to Windows 2000 IIS 5.0, I'm constantly getting HTTP Headers posted to the top of the HTML... -
Need Input on Cache-Control in ASP, HTML...
<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <meta HTTP-EQUIV="Expires" CONTENT="Tues, 01 Jan 1980 00:00:00 GMT"> <meta...



Reply With Quote

