• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

GET,POST or BOTH

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
permaculture is giving a gift to your future self. After reading this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic