By rockyrackoon on
hello friends!
how do i get the PUT arguments inside the Drupal PHP code?
when i say PUT i mean the HTTP method PUT, like the more common POST method.
i'm trying to work up the RESTAPI module which was probably never even tested or used, because ALL the PUT methods don't work.
so can anyone help me and tell me how it's done?
10x alot!
rocky
Comments
It requires some apache
It requires some apache configuration. Make sure mod_actions is enabled, and add a "Script PUT /index.php" in your virtual host or directory container (or at the server level):
For your module. you probably have something like this already, but here's how you'd see what is PUT to the path /rest:
To test:
will result in: