post variable

bruno.desthuilliers at gmail.com bruno.desthuilliers at gmail.com
Mon Jan 28 17:20:36 EST 2008


On 28 jan, 22:32, "pavloutefk... at gmail.com" <pavloutefk... at gmail.com>
wrote:
> 1. yes i've tried that technique but its annoying, the user can easily
> stop the redirection and not "elegant".

It's a very canonical technique with HTTP (at least after a successful
POST). But I suspect you're not doing it the right way, since you're
talking about "the user (...) stop(ing) the redirection".
"Redirecting" here means "sending an HTTP  redirection status code and
the appropriate location header" (according to the rfc, code should be
303, but for legacy reasons it's often a 302). You must indeed *not*
have send *anything* else to the client before (which means that you'd
better use a log file to trace your code) !




More information about the Python-list mailing list