A
A
Alexander Fadeev2016-11-09 21:51:27
PHP
Alexander Fadeev, 2016-11-09 21:51:27

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?087be3f0775742ed81c6d6ddb40a8e45.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Archakov Dennis, 2016-11-10
@archakov06

I have ok. Only for some reason it accepts GET parameters for POST45dad2762b454509a48b3db2510914a9.png

A
Arman, 2016-11-10
@Arik

Maybe your browser has been updated?
https://www.w3.org/TR/cors/
https://learn.javascript.ru/xhr-crossdomain

A
Alexander Fadeev, 2016-11-10
@An_Tux

Tried with another app, here is the result...
e422862b0ce645c591aa152580f7cba2.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question