![](/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.