Page 1 of 1

Post request is not working

PostPosted: 01. November 2020 10:35
by warrior
Hi
I have an Arduino that want to send data to my MySql database with Post request.
It is working if I connect to a database that I have at a server from my internet provider.

But when I trying to use XAMPP at a Windows 10 machine local in my network it doesn't work.

I have switched on the settings that accept POST request.

Is there any more setting that I need to change.

Re: Post request is not working

PostPosted: 02. November 2020 10:59
by Nobbie
warrior wrote:I have switched on the settings that accept POST request.


I dont know any switch in Xampp to allow POST requests. Never heard about.

Re: Post request is not working

PostPosted: 03. November 2020 21:22
by warrior
Hi
in the php.ini file there is a setting called: enable_post_data_reading = On

But still POST is not working, if I change and send a GET the php file is running.

The Arduino code is working on another server that is not XAMPP so my guess is that I have some problem with my XAMPP.

I have posted this in the arduino forum also but due to I think the problem is at the server side I think this forum is a better place to ask.

Re: Post request is not working

PostPosted: 03. November 2020 23:10
by Altrea
warrior wrote:in the php.ini file there is a setting called: enable_post_data_reading = On

But still POST is not working,

Sure, because in php.ini the setting for enable_post_data_reading is commented out. Therefor the default setting is active which is already set to "1".
POST is working fine in php files with XAMPP. The answer MUST be in your code.
Because we don't know any snippet of your code it is impossible to provide proper help.