【发布时间】:2016-12-22 15:44:20
【问题描述】:
这对某些人来说可能很简单,但我是 PHP 和 json 的新手,我想知道如何在下面使用这样的 cURL。就像在 PHP 中将数据保存在数据库中一样。任何人?谢谢。
curl -i \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u username:password \
-d '{
"service_name" : "MPESA",
"business_number" : "888555",
"transaction_reference" : "DE45GK45",
}' \
"http://your_domain.com/transaction_consumer"
【问题讨论】:
-
欢迎来到 SO。请阅读What topics can I ask about 和How to ask a good question 和the perfect question 以及如何创建Minimal, Complete and Verifiable example SO 是不是免费的编码或代码转换或调试或教程或图书馆查找服务 你还必须展示你已经为解决自己的问题付出了一些努力。