tags:

views:

882

answers:

1

Hello

I have a cron job setup on one server to run a backup script in PHP that is hosted on another server. The command I've been using is formatted like this:

curl -sS http://www.example.com/backup.php

Lately I've been getting this error when the Cron runs

curl: (52) Empty reply from server

I have no idea what this means. If I go to the link directly in my browser the script runs fine and I get my little backup zip file.

Can anyone help?

Thanks, Paul

+2  A: 

Curl gives this error when there is no reply from a server, since it is an error for HTTP not to respond anything to a request.

I suspect the problem you have is that there is some piece of network infrastructe, like a firewall or a proxy, between you and the host in question. Getting this to work, therefore, will require you to discuss the issue with the people responsible for that hardware.

Steve Knight