Curl and wget return error 500 for helloworld.php on new install but browser is fine Curl and wget return error 500 for helloworld.php on new install but browser is fine curl curl

Curl and wget return error 500 for helloworld.php on new install but browser is fine


It can happen that your apache is not accepting any useragent from curl or wget. This can be configured from httpd.conf file (or may be some other place, not have much experience on that).

If you use the useragent of your browser with wget or curl, it should work with you. For example:

wget -U "Opera 11.0" http://www.test.com/curl -A "Opera 11.0" http://www.test.com/


I noticed another domain name on the server worked. So, I copied the vhost, reloaded apache and it still was not working. I made everything exact. In the end I saw DNS was pointed to my dev server which was not listening for my domain name and returning an error 500.

Updated DNS and the show is back on. Thanks for working me through things with ideas!