Post request is not working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Post request is not working

Postby warrior » 01. November 2020 10:35

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.
warrior
 
Posts: 2
Joined: 01. November 2020 10:29
XAMPP version: 7.4.9
Operating System: Windows 10

Re: Post request is not working

Postby Nobbie » 02. November 2020 10:59

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.
Nobbie
 
Posts: 13214
Joined: 09. March 2008 13:04

Re: Post request is not working

Postby warrior » 03. November 2020 21:22

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.
warrior
 
Posts: 2
Joined: 01. November 2020 10:29
XAMPP version: 7.4.9
Operating System: Windows 10

Re: Post request is not working

Postby Altrea » 03. November 2020 23:10

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11952
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 149 guests