2

以下 POST将从 file_get_contents('php://input');返回'{"name": "TheCustomer"}'

curl -i http://localhost/api/api/application_create -d '{"name": "TheCustomer"}' -H 'X-API-KEY: {MY_USER_KEY}' -H "Content-Type: application/json" -v -u {MYUSER:MYPASSWORD} -X POST

此 POST 将返回'{"name": "The' from file_get_contents('php://input');

curl -i http://localhost/api/api/application_create -d '{"name": "The Customer"}' -H 'X-API-KEY: {MY_USER_KEY}' -H "Content-Type: application/json" -v -u {MYUSER:MYPASSWORD} -X POST

有什么想法会触发截断吗?

4

0 回答 0