MHB What is the difference between GET vs POST vs PUT? Mainly POST vs PUT?

  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Difference
AI Thread Summary
The discussion centers on the confusion surrounding the HTTP methods PUT and POST, particularly in the context of their use in web development and the HTTP protocol. The main points highlight the fundamental differences between these two methods. GET is understood as a method for retrieving data from a server, while PUT and POST are both used to send data to a server. However, PUT is idempotent, meaning repeated requests with the same data will not change the outcome after the first request, whereas POST is not idempotent and can create new resources with each request. The user expresses frustration over the lack of clear, simplified explanations available online, noting that many sources are unhelpful or repetitive. They seek a straightforward understanding of how these methods function in practice, emphasizing the need for clarity on how PUT and POST differ in their operations and implications for resource management on the server.
shivajikobardan
Messages
637
Reaction score
54
First of all I am not learning this currently from web development Point of view. So I think I don’t need the extreme level of understanding. I am studying this in a topic called “HTTP protocol”. And in my opinion, I need to learn enough to write what it does in exam paper.

It is so confusing in internet. I can’t explain enough. Firstly I was just confused between PUT and POST. But later someone started to tell me that you could use GET instead of these two in submitting form. That got me confused to next level.

What I have already understood(be it wrong or right I am not sure).

GET-: It helps to retrieve the file indicated by URL in request line from server.

PUT and POST seems same thing to me.

PUT places data in body to the URL in request line.
POST has no such definitions anywhere in books or internet. And it is generalized as “POST is used to submit form data”.
But the gist of these two seems similar ie post data to server. What’s the difference?

And there are like 6,670,000,000 results in google.
But I don’t know how stupid I am to not get this.Most articles in internet are copied from each other and written pretty unprofessionally. I am not very smart. I mean smart in the sense that one who can understand anything taught by anyone and doesn’t need that clarity. I need something very simplified to understand and I don’t find it at least till now.

https://stackoverflow.com/questions/630453/what-is-the-difference-between-post-and-put-in-http
https://stackoverflow.com/questions...ference-between-a-post-and-a-put-http-request

These are perhaps the only reputable answers about this but I find them very confusing.

They say idemptotencyy is there in some and not in other. But I want their basic difference in working.(PUT is idempotent).
Idempotent means you can keep repeating the same thing again and again but the final result will be the same as the initial result that happened when you did that thing for the first time.

Is this the only difference between POST and PUT working and is their definition same?
Another thing that I am seeing is PUT keeps data to be sent in URL whereas POST doesn’t do it. How do we know about it? I can’t see any information that shows this thing practically. (They say while googling you use PUT so that you can visit that page again as well.) But IDK how to explain, I don’t know how.
Just tell me the difference between PUT and POST in terms of real working difference, Like how they work. Thanks for the information.
 
Technology news on Phys.org
This is not my speciality and I didn't really know about PUT before this question, but it seems that PUT is used to check if a resource exists and POST always creates a new resource. It also seems to me that repeated POST requests with the same payload will create new records each time, and PUT with the same payload will not change the result if used multiple times.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top