我尝试了所有方法,但没有尝试发送 .php 文件的 post 请求。
Fuel.post("https://httpbin.org/post")
.jsonBody("{ \"foo\" : \"bar\" }")
.also { println(it) }
.response { result -> }
我的测试文件(test.php)
<?
print_r($_POST);
?>
(test.php) 中的结果为空
Array()
图书馆
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
implementation 'com.github.kittinunf.fuel:fuel-gson:2.3.1'
我做错了什么?