Thanks for the article. Saved me a lot of time.
I got here googling "php read request data put method", and this was the first result.