Answer the question
In order to leave comments, you need to log in
Why php script doesn't accept post request remotely?
Good afternoon, there is the simplest script from one line of code print_r($_POST); using various rest clients, I send a request containing post parameters to it, everything works locally, when the script is transferred to an external server, it displays an empty array, and if you send a POST request from the same site to the script, the script returns a normal response... this behavior it started suddenly and at first only some scripts stopped responding to post requests, and now none of them respond at all. I didn't change the server settings. What could it be, where to dig?
Answer the question
In order to leave comments, you need to log in
I have ok. Only for some reason it accepts GET parameters for POST
Maybe your browser has been updated?
https://www.w3.org/TR/cors/
https://learn.javascript.ru/xhr-crossdomain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question