Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: Displaying PDF files via CGI::Applicationby weierophinney (Pilgrim) |
on Sep 03, 2003 at 02:40 UTC ( [id://288489]=note: print w/replies, xml ) | Need Help?? |
You are seeing the headers in your browser window, indicating that some process has already sent a set of headers to your browser before the headers you are intending
Absolutely correct. CGI::Application has a special method for defining headers; if you don't follow it, it will send 'text/html' as the doctype. To override the headers, the OP used the appropriate construct:
My only other suggestion to the OP is to look and see if another print statement might be happening somewhere earlier in the process -- try running the application from the command line and look at the output for any whitespace preceding the headers.
In Section
Seekers of Perl Wisdom
|
|