August 2019
Beginner
482 pages
12h 56m
English
All of this time, we used the @app.get method, which represents the expected HTTP GET request. As its name implies, this command is supposed to retrieve information and therefore is designed to store small snippets of data in itself. This data could be passed as resource—part of the URL, like complaint_type in the preceding example—or appended as a parameter, like hour in our first example.
However, there are cases when you need to pass a significant data structure as part of your request. For that, there is another command: POST. You see, every request, technically, has three means of passing information: