Ok, this is my first project. Go easy on me. I would search, but I'm not even sure what the key words are that I should be using. Here is what I hope to accomplish...
My current garage door project has a limit switch that enables a light. An old Android phone monitors that light. When the garage door opens and the light comes on, it sends my phone a message, using Tasker and AutoRemote (enter task). My phone receives that message and displays a notification, showing a predetermined message and time stamp. When the door is closed and the light goes out, it is expected to send a different message (exit task), which again causes a different notification. The "exit task" of this does not always fire because it doesn't capture that the light went out if it had been on for more than a few minutes.
Using Tasker and Join, I am able to create a few URLs that will accomplish the same "trigger" event as the light being seen/unseen. If your browser hits on one of those URLs, my phone gets a keyword message. When it gets that keyword message, my phone displays a notification, based on the keyword (open or closed).
What I need the Pi to do is monitor the hi/lo state of the switch, or either throw of that switch, and "hit" the appropriate URL so that my phone gets the event.
TL;DR - I need the Pi to do HTTP POST when a switch is opened and closed.