PUT requests and variables for API in PHP
I'm currently building an API, and I want to separate updating (Which I am
using POST for) from creation (Which I want to use PUT for). This might
seem like a dumb question, but how do I retrieve variables sent through
PUT? There is no $_PUT array in PHP. I'm trying to send data with WFetch
this way:
Content-Type: application/x-www-form-urlencoded\r\n
\r\n
Name=Test\r\n
I've tried to look up how to use PUT, but I can't seem to figure it out.
No comments:
Post a Comment