-1
可能重复:
How to send HTTP request and retrieve response in PHP (with fine-tuning of headers)?我可以如何使用php json发出这个http post请求?
8.1.4.1样品ping请求
HTTP请求:
POST /api/ra/v1/ping HTTP/1.0
Host: app.test.net
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Content-Type: application/json
"Are you there?"
有人可以帮我与一些PHP原料例如?
该请求的正文不是Content-Type头声明应该是的JSON。 – Quentin
这个请求在api参考例子中。但我不知道如何设置我的PHP文件,使这个电话 – mightymike
甚至不明确什么目标是... AJAX或PHP到远程API发布?将更多的努力放在你的问题上会有所帮助 – charlietfl