Hi I’m trying to use the HTTP DELETE method passing body params.
But the value of post (Yii::$app->request->post()) is like that :
array(1) {
["----------------------------402107669720104635464403
Content-Disposition:_form-data;_name"]=>
string(224) ""userAltId"
1
----------------------------402107669720104635464403
Content-Disposition: form-data; name="accessToken"
...
----------------------------402107669720104635464403--
"
}
And by printing the $_POST I get an empty array :
array(0) {
}
What I expect is a simple array : [‘userAltId’ => 1, ‘accessToken’ => ‘…’]
Here is what my request looks like in postman :
Would someone know why this format is returned ?
I got other functions where the post values are returned correctly. Is it due to the fact I’m using delete for this request ?
Thanks in advance for your answers.