![](/img/trans.png)
[英]Php CURL Though I set the header as application/json the request goes as application/x-www-form-urlencoded
[英]Accepting Request data passed in application/x-www-form-urlencoded in Codeigniter
我正在使用Codeigniter开发API,并且需要接受application / x-www-form-urlencoded格式而不是JSON的数据。
我没有得到如何将请求数据作为数组存储和输入到变量中。
多次使用相同的键,并在最后放置方括号。
animals[]=cat&animals[]=dog
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.