H
H
Hecktosaurus2021-05-26 14:44:42
Nginx
Hecktosaurus, 2021-05-26 14:44:42

Is it possible to intercept $_POST with processing in an intermediate script?

Hello! The question is purely academic.

Is it possible to:
1) When sending a POST request (submitting a form, for example), send it to a separate php script;
2) The script manipulates the received data (as an example, it sends it to crm), then returns the data back to nginx;
3) Nginx sends the data further, where they were originally supposed to go (for example, the index.php of the site)

We did something close in this question , it became interesting if such a trick can be done + what pitfalls can be encountered with such an implementation? Theoretically, this can be useful when integrating a site with crm without modifying its source files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-05-26
@Hecktosaurus

https://www.nginx.com/resources/wiki/start/topics/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question