I am trying to make my JSON POST request working, when I set it to form-encoded request I can display all the ?args=values&args=values
by $this->response($this->post(),200);
but when I change id to json-encoded POST input, I get as response []
- why is that?
相关问题
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Design RESTful service with multiple ids
- HTML form is not sending $_POST values
相关文章
- 请大神帮忙 post向https接口发送数据 部署到服务器为什么运行一会后就会报空指针
- WCF发布Windows服务 POST方式报错 GET方式没有问题 应该怎么解决?
- 用 $.ajax POST 请求数据报错
- 设备发送一个http post请求,接收不到
- json_encode 没有把数组转为json
- Livy Server: return a dataframe as JSON?
- Unexpected end of JSON input from an ajax call
- How do I do a nested list (array) of schema refere
There is a difference between POST parameters and a HTTP body... well, at least as far as PHP is concerned.
You want to look at
$this->request->body
.