Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GET,POST or BOTH

 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
can you please give me the answers for these statements.

Which HTTP method do you choose for implementing that functionality.(GET,POST or BOTH).
1.A User hits the 'next' button to see the next page.
2.A user hits the 'log out' button on a secure banking site.
3.A user hits the 'back' button on the browser.
4.A user makes a radio buutton selection.

Thank tou very much for your help
shanthi
 
Sai Patnala
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If next button is defined by page author, it depends on what they set it for.

Back button on browser is dependent on previous action. If its get, its going to be get, if it is post, its going to be post. That is why you see lot of web sites, where you search and go back, it asks whether you want to post again to get the result set.

Log out again could be either get/post depending on implementation.

Radio button selection is get.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic