Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by writing a little Perl script myself I was able to recreate the same problem. There is no particular place that the output gets cut off. I have considered the possibility of time outs but I cannot find any time out related errors in the web server logs. The limits set for CGI appear to be fine too.

What measures can I take to identify the cause (and fix) this problem?

share|improve this question
Which version of Perl? – Brad Gilbert Aug 4 '09 at 16:14
The version of Perl is 5.8.8 – lintunen Aug 6 '09 at 7:45
Which OS do use use at server? – user16526 Aug 12 '09 at 21:00
The OS is Debian Etch. – lintunen Aug 13 '09 at 8:59

Anyway, in case anyone is interested I found a solution to my problem. The application wasn't providing a content-length. When I wrote a script to buffer the output and append a content-length before displaying it to the browser the problem was solved.

share|improve this answer

Why don't you post the "little Perl script" here? Are you writing to the screen with "print"? Those shouldn't be buffered or anything.

share|improve this answer
I just mentioned that I could reproduce the problem by writing code but that's not the problem itself - as I mentioned I discovered the problem with this application hosted on the server so I believe there may be a problem with the environment that I need to figure out. – lintunen Aug 5 '09 at 7:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.