On Sep 6, 11:30 pm, "Gary Bernhardt" <[EMAIL PROTECTED]> wrote:
> web.redirect is HTTP 301, which means "the thing you're looking for
> has moved and is now permanently at this other location".
> web.seeother is HTTP 303, which means "the result of your request is
> at this other URL", which is a temporary kind of redirect.  The major
> practical difference is that the result of a 301 should be cached by
> clients, but 303 shouldn't.  You can find more complete information in
> the standard [1].  Of course, as always, the various browsers may not
> implement these status codes correctly.
>
> [1]http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>

So it seems like it would be rare to want to use web.redirect,
correct?

Does this mean this authentication example is using it incorrectly?
http://webpy.infogami.com/authentication
Relevent code:
        if inp.username == user.username and inp.password ==
user.password:
            dologin(user)
            web.redirect('/')
        else:
            web.render('login.html')

(BTW side comment, I don't think that page made it over to the new
wiki)

-Greg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to