PUT vs POST: What's the difference?
ฝัง
- เผยแพร่เมื่อ 4 ส.ค. 2024
- Ever wonder what the difference was between PUT and POST methods of the HTTP protocol? It's something every RESTful web developer must know.
These purpose of the two PUT and POST HTTP verbs are similar, but there are significant differences that pertain to payload, URLs, idempotence and the types of operations PUT and POST methods are allowed to perform.
This quick tutorial on POST versus PUT methods of the HTTP protocol will help you understand the difference between the two, but it will also help you understand the history that led up to the creation of the various HTTP methods we commonly use today in the RESTful web services and microservices we create today.
0:00 - POST versus PUT
0:15 - HTTP PUT Explained
0:36 - HTTP POST Explained
1:15 - Compare POST and PUT
1:45 - Hello and Welcome!
2:15 - History of the HTTP Protocol
3:00 - HEAD, GET and POST
4:15 - PUT, DELETE, POST and OPTIONS
5:40 - TRACE, OPTIONS and CONNECT
6:40 - HTTP Idempotence and Safety
7:15 - Example of Idempotence
10:20 - PUT and POST Differences
10:45 - Twitter and TH-cam
11:15 - Buy my JPA and Scrum books!
Here's the adjunct article I wrote on HTTP POST vs PUT methods over on TheServerSide. Check it out for more details about how these HTTP verbs work.
www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/PUT-vs-POST-Whats-the-difference
Clear and Very helpful
Very helpful!
Thanks! Trying to make the difference between HTTP PUT and POST methods simple for anyone doing RESTful development.
Perfect explanation 👍
Thanks for your kind words!
I worry it's too technical. But I also feel so many tutorials on the topic gloss over the nuance of POST vs PUT and actually get a lot of the concepts wrong.
Thanks for watching!