I am using the following command on my ssh terminal-
curl -v -L http://mysite/path
to request some data. However, its returning a 404 error(the site is hosted on the same server). But using curl to request data from some other site such as google is working perfectly fine.
Also, the above url loads up perfectly in a browser and on using the same curl command from my localhost terminal to the above url loads up the data just fine.
Is there something amiss? By the way, the server vps is having centos 5.9,64 bit.