• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which one Get or Post?

 
Suniljava Sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i am going back to previous page by using Back arrow(or Alt+left arrow) then which method must be used.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be the same method as the one sent by the request you are returning to. In fact, it will send an identical request.

One exception to this is if the server caused a redirect for the request that you are returning to - then the browser will return to the request caused by the redirect, which I believe would always be a GET. It is common to use redirects with the PRG Pattern to avoid duplicate POST submissions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic