RE: Why you should use POST instead of GET

You are viewing a single comment's thread from:

Why you should use POST instead of GET

in php •  7 years ago 

Oh, I guess you misunderstood me. I meant changing the status of home devices with the PI.
For creating I also would prefer POST.
The GET method to "change the status" of my home devices (light on/off or open/close shutters) has proved its worth because i can bookmark it and i can call it via VBscript just by request the URL. Maybe I am too lazy.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Sure, i understood.
I said, the right command would be PUT or PATCH, because you want to modify the state. But you can only use GET or POST with the browser.
So both (GET and POST) would be ok...