in , , , ,

You know how HTTP GET requests are supposed to be idempotent?

You know how HTTP GET requests are supposed to be idempotent? | code-memes, web-memes, iphone-memes, random-memes, http-memes, IT-memes, cloud-memes, ide-memes, ipad-memes, ML-memes, icloud-memes, laptop-memes, retweet-memes, wifi-memes | ProgrammerHumor.io
code-memes, web-memes, iphone-memes, random-memes, http-memes, IT-memes, cloud-memes, ide-memes, ipad-memes, ML-memes, icloud-memes, laptop-memes, retweet-memes, wifi-memes | ProgrammerHumor.io

[text] D D D D D o rearee You know how HTTP GET requests are meant to be idempotent Well do have the story for you … a while back added WiFi control to our garage doors with little Wemos D1s. 209 PM 29 Apr 2018 1659 Retweets 2532Lkes PG B IWH T Q 61 M1k Q 25k Will Pearse rombulow Apr 29 v The Wemos expose a simple web page with a link that says Toggle. The endpoint for the link activates a relay which is hooked up to the pushbutton on the garage door which makes the door raiselowerhalt. O 1 n 24 QO 1715 Will Pearse rombulow Apr 29 v This toggle endpoint responds to GET requests. threw the code together in minutes and was too lazy to spend another couple minutes figuring out POST. regret Q 2 m 13 Q 181 Will Pearse rombulow Apr 29 v Safari eventually figured out used this toggle page regularly so added it to my favourites. Which are iCloudsynced between all my devices. O 1 n 25 Q 218 Will Pearse rombulow Apr 29 v So every time opened a new tab on my laptop desktop iPhone or iPad the garage door opened or closed. Late at night early in the morning or randomly throughout the day… O 15 n 177 Q 820 Will Pearse rombulow Apr 29 v This kids is why GET requests should be idempotent. Q 37 n 221 QO 12k B