I can not understand how they work post requests in python?

You have a server in flask that when you go to the address "127.0.0.1:5000/get" gives a blank page with a single dictionary {"foo": "var"}. With a get request, everything was quite simple and clear, and here to download your dictionary does not work with post request. I receive an error 405.
How to write a post request to the page depicted another dictionary? How to change an existing dictionary?
April 7th 20 at 10:58
1 answer
April 7th 20 at 11:00
Read how the HTTP Protocol at least on the wiki.
There is an http server that waits for connections on a port and processes requests.
Each request is characterized by a method (get, post, put, head, etc.), the address (and this is a separate factor, not correlated with the method), headers (where we have the client's wishes about the response format, all sorts of cookies, information about the client), a body (where we have the form data post requests, just downloadable files like avatars or json'and...).
Every such request gets to the server and gives him some kind of answer or even ignore closing or not closing the connection.

Write a post request is how to understand, write code to perform a post request (from client to server, of course, there is no other way).
If the server at the given address or for some other reason does not accept a post request, you will not be able client-side to get him to do it.
Even if you hit him with a stick.
The server you will meet with an error with some code. If server developers well done, the error code will be relevant to the situation, but generally there nt[ybxtcrb can be anything, even Devil 666 request success.

You have not shown here the source code of the server, did not show a code sample that you used is not even close to understand how the HTTP Protocol don't understand what you ask...
How do you expect to understand that you are responsible?
Facepalm.
@Clovis.WillCan arguments? What exactly is wrong that you decided that I do not understand the question? - Teresa52 commented on April 7th 20 at 11:03
@Teresa52, it your wording in the question:
How to write a post request to the page depicted another dictionary?

but to download your dictionary does not work with post request

In this case, you absolutely don't say anything about how the server and which requests it supports.

And no problem that you do not understand something. The problem is that you go over these knowledge is not in the most logical and obvious place - the documentation, tutorials, articles for beginners (and a lot of them even in Russian), and ask a meaningless question here.

But this question is really pointless because it's impossible to answer.

And this is a systematic problem, if you look at other questions on this resource. - Clovis.Will commented on April 7th 20 at 11:06

Find more questions by tags Flask