这里补充PHP代码
现在的问题是 android 只能请求到 test 方法,就算使用post提交也无法请求到test_post() ,但是看到的方式却是IS_POST.求解。 希望帮解答下,谢谢!
我在本地使用 curl url/test -x POST 是可以请求到 test_post() 方法的
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你试试改为
test_post_json(),然后客户端传个header指明Accept:application/json,看看是不是请求类型的问题。