We have a cPanel host running on centos that has got me stumped. I am trying to use curl from the command line to trigger a specific web page. However I keep getting 404 errors for the specific page whereas the main page works fine.
curl http://example.com
This works fine.
curl http://example.com/dev/buil?flush=all
This returns a 404 every time. I can access this exact page from a web browser and indeed running this command from another remote Linux box works fine. I have run a packet capture on the firewall that it sits behind and can find no blocked packets, only DNS requests for example.com.
I am really stumped as to where to look next as I was certain I was going to find some kind of rule conflict on the firewall blocking a port that curl needed but alas I have found nothing.