If a client sent a PUT request with an array for example:
$a = array('age' => 18);
$rest->put('/api/users/9', $a);
How does your rest API get the $a array?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can read the request body at
php://input, but be warned that it’s volatile and can only be read once*.You’ll then need to parse this as a URL to use it as an array.
* details are on the linked page