• Janarthanan Soundararajan

HTTP Methods - Learn HTTP by Creating Flask Application

Welcome to the second blog post of 'Learn HTTP by Creating Flask Application' blog series. In this blog post, we are going to learn the HTTP methods. We don't need any coding work to understand this article. I'm going to explain the cocepts. We'll see how it will be applied practically in upcoming blog posts.

There are nine methods in HTTP, but we're going the see most popular and useful methods.


It is a more popular method in HTTP, which helps to retrieve the data from the server. This method is a read-only method. It will not do any update in server state. Which is also a default method in Restful services.


'POST' helps to send the data to the server. In our blog series, we'll use the POST method to add the new data in the database.


It is similar to the POST method, but PUT method used to modify the existing state of the server. We'll use it to update the present data in the database.


You can guess the purpose of this method by its name. Yes, DELETE method used to delete or remove the state in the server. We'll use this method to delete the data in the database.

These four methods are more significant in HTTP. In these methods GET is a safe method, because it will not do any modifications in the server which only used to get the data from the server. And another three methods are unsafe, because these methods may do any changes in server state.

Remaining five methods are HEAD, CONNECT, OPTIONS, TRACE, and PATCH, these methods do not have more applications and most of these methods have similar functionalities related the GET, POST, and PUT methods. Please comment blew if I want to cover these five methods.

In our next blog post, we'll see about Flask framework and how to run the first Flask application.

Thanks for reading!

#http #learnhttp #flask #python #httpmethods #programming

208 views0 comments

©2020 by Techaaroorian.

  • Pinterest
  • Twitter Social Icon
  • Facebook
  • YouTube