Close

POST/GET

A project log for Message Me

Cute communication between someone younger in your life using EMOJIs.

trey-aughenbaughTrey Aughenbaugh 06/25/2021 at 15:340 Comments

I was using a GET request on the Build in Web form to post the message to the form, which then gets sent to the MQTT feed.

What I found is that on my phone, sending a message, then moving onto another app, if I open chrome again, it refreshes the page and resends the same message, because its contained in the URL as a get request... /message.html?msg=GoodMorning

So I either need to clear the url, or use a post.

I like the get method, because that opens the door to also send messages just by typing the url and adding the required parameters.

I found this document.

https://stackoverflow.com/questions/22753052/remove-url-parameters-without-refreshing-page

Since I already handed off the devices, I'll have to set up something similar to test on.

Discussions