I've just discovered to myself an PhpStorm HTTP client tool, but immediately faced unexpected problem. I am unable to send any POST params to my localhost.
I've tried the following code:
POST https://test.loc/
Content-Type: application/json
{
"test": "asd"
}
Didn't work. The $_REQUEST
array is simply empty.
At the same time, i'm receiving all GET params without problems.
Also tried to send exactly same request to https://httpbin.org/post
and received the list of my params back at responce, so I assume that request syntax is ok and HTTP client work well.
So, could anyone please tell what the problem with my local server?
I'm using:
- PhpStorm 2020.3.1
- Open Server 5.3.7
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…