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?

  • 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.


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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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