Error 406 When Using Desktop Client

Submitted by gogozec on 2013-04-17

Hi,

When I use desktop client I get 406 error (in Fiddler) from the service. My site is hosted on Hostgator.
I found out what is causing this problem, it is User-Agent in header of the message.

When I change User agent from:

User-Agent: Mozilla/5.0

to

User-Agent: Mozilla

or to

User-Agent: Mozilla Firefox

this problem is fixed. Can you tell me how to resolve this? I believe there are many other users using Hostgator services.

Thanks!

As I said in this thread, the solution is to disable mod_security. In most cases it's not configured properly and doesn't provide any security at all, but causes problems with legitimate requests.

Regards,
Michał

Hi Michal,

Thank you for the answer. Changing .htaccess file didn't resolve my issue. HostGator does not allow disabling mod_security by end user.

http://forums.hostgator.com/mod-security-and-403-errors-t71394.html?s=e57f50b42ebc66b41ec085c8d444d288&

Anyway, if anyone has similar problem with HostGator, the solution is to contact their support and they will disable mod_security on your site.

Thank you,
Gogo