On Aug 12, 6:33 am, "[email protected]" <[email protected]> wrote:
> I've attached the email I get for a 406 Error occasionally.

> A 406 error occurred on server 1000corks.com at 2009-08-12
> 01:52:46.581415.

> ACCEPT-ENCODING: 'deflate'

here's your issue.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

If an Accept-Encoding field is present in a request, and if the server
cannot send a response which is acceptable according to the Accept-
Encoding header, then the server SHOULD send an error response with
the 406 (Not Acceptable) status code.

You can test it with the following:

tsavo:~ mcd$ telnet 1000corks.com 80
Trying 216.245.211.10...
Connected to 1000corks.com.
Escape character is '^]'.
GET /blog HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; Tagoobot/3.0; +http://
www.tagoo.ru)
Host: 1000corks.com
Accept-Encoding: deflate

HTTP/1.1 406 Not Acceptable
Date: Wed, 12 Aug 2009 21:48:23 GMT
Server: CherryPy/2.3.0
Content-Length: 3229
Content-Type: text/html; charset=utf-8
Set-Cookie: atip=74.225.96.123.1250113703318744; path=/; expires=Fri,
08-Aug-25 21:48:22 GMT; domain=.1000corks.com
Set-Cookie: tg-visit=fd3c972a8c93d7b38930b1afea1d7e2e7720404f; Path=/
Vary: Accept-Encoding

remove accept-encoding, and you get:

tsavo:~ mcd$ telnet 1000corks.com 80
Trying 216.245.211.10...
Connected to 1000corks.com.
Escape character is '^]'.
GET /blog HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; Tagoobot/3.0; +http://
www.tagoo.ru)
Host: 1000corks.com


HTTP/1.1 200 OK
Date: Wed, 12 Aug 2009 21:48:59 GMT
Server: CherryPy/2.3.0
Content-Length: 34076
Content-Type: text/html; charset=utf-8
Set-Cookie: atip=74.225.96.123.1250113739941456; path=/; expires=Fri,
08-Aug-25 21:48:59 GMT; domain=.1000corks.com
Set-Cookie: tg-visit=234a02e109327cd67d306f01529942399ed616c9; Path=/
Vary: Accept-Encoding

I haven't used TG1 or CherryPy, but, the 406 is a content negotiation
error.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to