I'm beginner with PHP, would you know how to create a file from a POST request from NGINX ?
THAT is the question, and that question is NOT an Arduino question. There must be something like 2110 web sites dealing with PHP scripting.
GET requests are far easier to make and test. Why not start simple(r)? If you NEED the security that POST provides, you can switch to making, and handling, a POST request after you KNOW that the GET request (with non-super-top-secret-kill-after-reading data) works.
I think it is more an issue of protocol than an issue related to POST or GET request. I wonder if the the POST method of the library HTTPClient.h contains the same protocol than POST of PHP language.
I must recall that I use the ARDUINO IDE to program the ESP32 board.
If the issue comes from the HTTPClient.h library, there is a reason to give insight for all users using this library from ARDUINO IDE.
KevH:
I must recall that I use the ARDUINO IDE to program the ESP32 board.
If the issue comes from the HTTPClient.h library, there is a reason to give insight for all users using this library from ARDUINO IDE.
Thank you if someone else can bring me insight
but your arduino code is ok. now you need to solve how to save the data to a file with php on server. and that is out of Arduino scope. you don't find php experts here