Bulk post 500 Internal Server Error

Hi,
I’ve a script which send just a lot of data in json format
by post.
Up to about 10Mb (data are put into a flat file) of data the script works great but
if the load is over I get from apache 500 Internal Server Error
I peeped into apache log file but I get
: [Wed Jan 19 17:20:08 2011] [error] [client ip] Premature end of script headers: index.php
Do you have any idea about it ?

Bye.

more verbose
[Wed Jan 19 17:26:41 2011] [error] [client ip] Premature end of script headers: index.php
[Wed Jan 19 17:26:41 2011] [debug] mod_deflate.c(615): [client ip] Zlib: Compressed 632 to 385 : URL /index.php

The post_max_size in php.ini is set to 100MB

http://stackoverflow.com/questions/4738691/php-bulk-post-500-apache-internal-server-error