I am using below command line curl for knowing if my site supports compressing and caching
curl --head --compress http://www.mysite.com
it returns the following result
Http://1.1 406 Not Acceptable
Date: Wed, 28 Dec 2011 07:41:32 GMT
Server: Apache
Content-Type: text/html; charset-iso-8859-1
what do you think about the problem? Thanks
In some case I had, faking the agent solved this problem, by using:
Similarly using
libcurl C-API
:From the HTTP/1.1 standard:
So drop the --head and you should see whats wrong.
The 406 may just be what is proving you right - the server doesn't support compression. :)