I have PHP 5.1.6 (cli) installed, and whenever a GET request string contains more than 128 characters, it fails with an HTTP 406 Not Acceptable error. Any suggestions on how I can fix this can use more than 128 characters? POST is not an option.
The error is returned by the server, so do not think that this is a problem with the browser. And the reason I think this is PHP, not Apache, is that it works great with an HTML file.
GET /test.php?phptestof129characterstring-NEW-WOVEN-FENCE-PANELS-GARDEN_W0QQitemZ200303392512QQihZ010QQcategoryZ139954QQtcZphotoQQcmdZViewItem
HTTP / 1.1
Host: *****
User-Agent: Mozilla / 5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.9.0.5) Gecko / 2008120122 Firefox / 3.0.5
Accept: text / html, application / xhtml + xml, application / xml; q = 0.9, * / *; q = 0.8
Accept-Language: en-gb, en; q = 0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1, utf-8; q = 0.7, *; q = 0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: agent_name = Tim
HTTP / 1.1 406 Not Acceptable
Date: Tue, 03 Feb 2009 12:05:33 GMT
Server: Apache / 2.2.3 (Red Hat)
X-Powered-By: PHP / 5.1.6
Content-Length: 0
Connection: close
Content-Type: text / html
GET /test.html?phptestof129characterstring-NEW-WOVEN-FENCE-PANELS-GARDEN_W0QQitemZ200303392512QQihZ010QQcategoryZ139954QQtcZphotoQQcmdZViewItem
HTTP / 1.1
Host: *****
User-Agent: Mozilla / 5.0 (Windows; U; Windows NT 5.1; en-GB; rv: 1.9.0.5) Gecko / 2008120122 Firefox / 3.0.5
Accept: text / html, application / xhtml + xml, application / xml; q = 0.9, * / *; q = 0.8
Accept-Language: en-gb, en; q = 0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1, utf-8; q = 0.7, *; q = 0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: agent_name = Tim
HTTP / 1.1 200 OK
Date: Tue, 03 Feb 2009 12:18:19 GMT
Server: Apache / 2.2.3 (Red Hat)
Last-Modified: Fri, 19 Dec 2008 15:01:17 GMT
ETag: "156960d-221-94be8940"
Accept-Ranges: bytes
Content-Length: 545
Connection: close
Content-Type: text/html