7
Not Acceptable
An appropriate representation of the requested Resource /aa/bb/cc.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an Errordocument to Handle the request.
Receiving this error, which sends?
I understand that the page is denying access to resources, but what could be the reasons for this to run?
was sending the request through the following format:
http://www.dominio.com.br/subdominio/arquivo.php
, I changed it to 406http://www.subdominio.dominio.com.br/arquivo.php
And it worked, is there an explanation? I can normally access the file the first way, but when trying to send a request with Curl the first way it doesn’t seem to work, only in the previous format( and in fact, it is a domain that is hosted the file).– Ale
Only with this information is difficult to explain. But it is common to give this type of error used a client that is not a browser. The programmer always forgets to do something.
– Maniero
To add in order to help future queries, I added the following line and helped me resolve as well,
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
– Ale
Makes sense....
– Maniero