Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GET,POST or BOTH  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!