Re: [OT] GET-then-redirect 'reload' behavior

2007-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashmi, Rashmi Rubdi wrote: These 2 articles talk about how to properly prevent idempotent data from being manipulated (deleted, saved etc) more than once. http://www.javaranch.com/journal/200603/frontman.html

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-07 Thread Andreas Prieß
Zitat der eMail vom 06.04.2007 um 12:41 Uhr: I recently discovered that a redirect-after-GET does not offer this protection. I have a link on one page that duplicates the current record, then does a redirect to the view record page displaying the new record. Any other ideas or thoughts? As

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas, Andreas Prieß wrote: I think the HTTP spec says that there should be _no_ change of status performed on a GET request - GET should alwasy be repeatable without danger. While I think you're right, and agree in general, my UI makes the

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-07 Thread Rashmi Rubdi
These 2 articles talk about how to properly prevent idempotent data from being manipulated (deleted, saved etc) more than once. http://www.javaranch.com/journal/200603/frontman.html http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost I tested this on Tomcat 6.0.x, and

[OT] GET-then-redirect 'reload' behavior

2007-04-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have many form handlers that redirect-after-POST so that executing a RELOAD/REFRESH on the client side doesn't end up repeating the transaction (and potentially creating two new database records, etc.). I recently discovered that a

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-06 Thread Len Popp
That's not the behaviour I'm seeing with Firefox 1.5 (I haven't tried 2.0). I have a page that responds to a GET with a 302 redirect. The browser then automatically GETs the redirect page, and the redirect URL is shown in the address bar, and if I reload the page it re-GETs the second page, not

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-06 Thread Rashmi Rubdi
Me too. I tired this on Firefox 2.0.0.3 The only time it re-GETs or re-POSTs the original request is when HTTP Forward is used. If HTTP Redirect is used , it never re-GETs or re-POSTs the original request. -Rashmi On 4/6/07, Len Popp [EMAIL PROTECTED] wrote: That's not the behaviour I'm

Re: [OT] GET-then-redirect 'reload' behavior

2007-04-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: That's not the behaviour I'm seeing with Firefox 1.5 (I haven't tried 2.0). So weird... I observed this the other day and it's not doing it anymore (i.e. it is working as I expected, without the re-GET). I have the same