我想把这个终端命令转换成php curl格式,或者http post你能帮忙吗?
curl -i -k -3 -X PATCH "http://localhost:8080/api/v2/db/_table/todo/1" \
-H "X-DreamFactory-Api-Key: <api key for app in the apps tab>" \
-H "X-DreamFactory-Session-Token: <session token from login response>" \
-H "Content-Type: application/json" \
-d '{ "complete" : true }'