Problem with application to see the source code
Hello, im trying to read the text content from a WWW request via unity, im having the following error on domain/jsonencode.php, or any other on the same domain.
it gives me the following error :
406 Not Acceptable
Not Acceptable
An appropriate representation of the requested resource /jsonencode.php could not be found on this server.
Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.
but it does not occur when trying the same procedure into another web pages, i.e. google.com, also, this web page also works as intended, domain/wp-json/wp/v2/posts/59004
Hello, alexcortesi.
Thank you for posting your question regarding the 406 Not Acceptable error you are receiving. I'm sorry to see that you are experiencing difficulty with this. This error is due to the ModSecurity configuration. I recommend you find and disable the ModSecurity rule that is causing the 406 error to appear. Depending on your configuration, you may need to disable the rule for each domain you want to allow this script to not be blocked for. You may also consider whitelisting the IP address of the server that is connecting to your domain(s) to run the script. I hope this helps!
Sincerely,
Carlos E