Столкнулся со следующей проблемой, иногда curl возвращает ошибку «406 Not Acceptable» answer:
# curl http://domain.com/curl.php
<html><head><title>406 Not Acceptable</title></head><body><h1>Not Acceptable</h1><p>An appropriate representation of the requested resource /curl.php could not be found on this server.</p><p>Additionally, a 404 Not Founderror was encountered while trying to use an ErrorDocument to handle the request.</p></body></html>
Способ решения проблемы найден достаточно быстро — использование громкого имени Mozilla в качестве User agent:
# curl http://domain.com/curl.php -A «Mozilla»Curl worked!