Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Urgent: Getting the Premature end of script headers Error.
Girish85
I have created the .ipl which is used to create the csv file through workflow and I need to open that csv file through browser by giving the complete path inside the httpd folder, it gives me the 500 error and on error log file i got the "Premature end of script headers: 1006430_2011-05-05.csv" Please advise on this.
Find more posts tagged with
Comments
Migrateduser
Where are these files created? Do you have the correct permissions set on the directory that they are being created in? Check those permissions.
I have read that you can sometimes use the following to display errors in the browser.
use CGI::Carp qw(fatalsToBrowser);
Otherwise, attach your code so we can see what the issue is.
Rick Poulin
"Premature end of script headers" means that your response did not have correct HTTP response headers, namely either you didn't print
"Content-type: text/html\n\n"
or your script printed out something else before that line that wasn't proper HTTP Header syntax.
I'd suggest that after checking for the execute-all permission (if you're even on UNIX to begin with), run your script on the command line and make sure there isn't an error thrown by your script, and that you have (at least) the content type header line being printed before your HTML (or whatever) output.
Further details:
http://www.perlmonks.org/?node_id=262011
(amongst many many other links. Google it and you'll find that this is a very common thing that has little to do with TeamSite)
Girish85
Thanks a lot guys for your reply.
I got the solution there was nothing related to script.
I was creating the report in iw-bin which was causing issue, I changed the report path from iw-bin to iw.