Hi,
I’m trying to do a POST request in my REST API but when I run the code line by line I can see that the method that MODx is reading is a GET
Does anyone know why this happens or what is the reason?
Thank!
Hi,
I’m trying to do a POST request in my REST API but when I run the code line by line I can see that the method that MODx is reading is a GET
Does anyone know why this happens or what is the reason?
Thank!
modRestServiceRequest just reads from $_SERVER[‘REQUEST_METHOD’]
So you could try to debug the $_SERVER[‘REQUEST_METHOD’] at the beginning of your index.php