• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query on http methods

 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1) Of the big 7 HTTP methods,
SAFE >> GET, HEAD, TRACE, OPTIONS

IDEMPOTENT >> GET, HEAD, TRACE, OPTIONS, PUT, DELETE

NON-IDEMPOTENT >> POST



Got this info from http://faq.javaranch.com/view?ScwcdHints

Can someone explain how PUT & DELETE are idempotent trying to PUT a file on the server multiple times ... will create duplicate copies of the file on the server ... so how is it idempotent ??

Thanks
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There will not be duplicate copies, just a single one. Putting the same file into the same location has always the same result - the file being at that location. It doesn't matter whether it's done once or ten times.

The same for delete - doing it once or twice has the same result: it's gone.
 
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got your point !! Can you please address my previous query also ... it seems to be the least favourite to get answered !! "Program to display contents of request object"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic