Empty reply from server

Hi,
I call a .php page using curl (cron setting)
It does complete the data processing only 50% and returns an error Empty reply from server.

I can't figure it out why do I get that error.

# cat /var/log/curl_cron.log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:34:14 --:--:-- 0
curl: (52) Empty reply from server

Any help will be appreciated.

If PHP takes considerable time to process a request, and when that time has exceeded a certain threshold, PHP will halt the processing and return an empty response. I suggest you check the PHP or Apache error log and see if you can find any useful clues. Also you may need to think whether you need to increase that threshold in the PHP configuration if a long processing time is customary for certain scripts.

PHP: Runtime Configuration - Manual