T
T
Twelfth Doctor2017-08-27 13:23:36
Flask
Twelfth Doctor, 2017-08-27 13:23:36

Can 2 applications access the POST/GET array at the same time?

Hello.
If I send a POST request to the server, then in PHP I can get its contents through
print_r($_POST)
Question: how can I access the same request in Flask (Python framework)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kirill Romanov, 2017-08-27
@Djaler

2 applications can't listen on the same port at the same time, so no. Is it possible to relay all incoming requests to another application

K
kazmiruk, 2017-08-27
@kazmiruk

They can, but it's a perversion. Caught in php request, processed, passed curl to flask, processed

R
rPman, 2017-08-27
@rPman

For GET, look at the environment variables of the web server used, for apache, for example, REQUEST_URI contains a request, it can be parsed, this variable is available to all applications launched from apache and its descendants (unless, of course, they are specially cleaned).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question