Parse data when using PUT verb.
uribes78 opened this issue · comments
I'm using workerman 'cause I think is great, but I'm developing an app and the want to use PUT method, but the Request
instance has not a method to retrived data. Is there a method I can use? or there must be develop from scratch?
I have been trying to parse it using php://input but have not success. Any suggestion? Thanks anyway
Try $request->rawBody();
Thanks for the advice, checking the method to parse POST request (parsePost
) , I can see that it is the same as PUT, so I'm just validating method and using the $req->post()
to retrivied data. Thanks again