Welcome to WebmasterWorld Guest from 22.214.171.124
I have a php script using curl to login to a website and grab data from the page.
It works fine when run in a web browser however as soon as I set it up to run as a cron job, it doesn't work.
When running it via command line in my linux server, I get an error "You are not authorized to view this page."
I get this using curl and lynx
Has anyone experienced this before? I tried searching and can't find anything. I have tried running the script via root as well.
I'm assuming it has to be an issue with the php script using curl.
Can anyone help?
Thanks in advance for your help!
For example typing in:
Returns "You are not authorized to view this page."
Let me know if I'm missing anything or if I should be specifying another user-agent (I'm assuming that curl and lynx are user agents right?)
The browsers it works fine with are FireFox and IE.
Thanks again for your help!