#871: params for get and post behave differently
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0
Component: CherryPy | Version: 0.9a5
Severity: normal | Resolution:
Keywords: |
--------------------------------+-------------------------------------------
Comment (by [EMAIL PROTECTED]):
This behavior is (somewhat) by design. When either GET or POST are handled
by an index method, and the URL is missing the trailing slash, CherryPy by
default does an HTTP redirect (302 or 303) to the same URL with the
trailing slash. As http://ppewww.ph.gla.ac.uk/~flavell/www/post-
redirect.html says, there's no cross-browser way to get the behavior we
really want (which would be a 301), so we fake it with 303/302.
Because this has its drawbacks and corner cases (as you've noticed), CP 3
includes the ability to turn off the 'automatic' redirection, using
{{{tools.trailing_slash.on = False}}}.
Some environments with a strict subset of browsers could choose to use 301
(and the trailing_slash tool should probably provide that option), but I'd
recommend closing this ticket as "hopeless".
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/871>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---