• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in SOAPUI by
Q:
What is the difference between PUT and POST?

1 Answer

0 votes
by

"PUT" puts a file or resource at a particular URI and exactly at that URI. If there is already a file or resource at that URI, PUT changes that file or resource. If there is no resource or file there, PUT makes one

POST sends data to a particular URI and expects the resource at that URI to deal with the request. The web server at this point can decide what to do with the data in the context of specified resource

PUT is idempotent meaning, invoking it any number of times will not have an impact on resources.

However, POST is not idempotent, meaning if you invoke POST multiple times it keeps creating more resources

Related questions

0 votes
asked Jun 9, 2020 in C Plus Plus by Robindeniel
  • #c-pre-increment
  • #c-post-increment
  • #post-pre-increment
  • #pre-post-increment
0 votes
0 votes
0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
asked Jan 20, 2020 in C Sharp by AdilsonLima
...