I'm getting this weird error when I try to send a certain string via POST to a PHP script hosted online.
This is the string I'm trying to send:
<b>character name cd</b>
The string here that is causing the problem is the two letter "CD". Even if I sent it like this I'm still getting the "Not Acceptable" error.
<b>CD</b>
or even this:
CD/
But if I send it like this (any character after CD except space) it goes thru:
<b>CDa</b>
What could be causing this error? My google-fu wasn't enough for this.
I'm testing this via simple HTML form and posting it to the PHP file that would output the value, here's the HTML code for the form:
<form action="http://linkhere.com/accept.php" method="POST" name="acceptme" enctype="multipart/form-data" accept-charset="UTF-8" >
<p>Test:</p>
<textarea id="testvalue" name="testvalue" rows="10" cols="50"></textarea><br />
<INPUT type="submit" value="Submit" id="submit1" name="submit1">
</form>
The PHP is accepting it using
file_get_contents("php://input");
Then just displaying the passed value.
Other info that might help find out the main cause of the problem:
Shared hosting
mod_security is disabled
* Nothing on the Apache error_log file