Basic Post to Server
Posted: Sun Oct 16, 2016 6:11 pm
Hi, all!
I've looked through the many included examples that come with Core and I'm fairly certain I'm over complicating things. My ESP8266 automatically connects to my WiFi without issue. Now, all I want it to do is send one command.
Background:
I have hosted a PHP script that when ran with an API key will change a field in a database from 0 to 1. It is structured like http://website.com/api/index.php?key=123456789
How can I tell my ESP8266 to "go" to that URL? I don't care about any return or receiving of data, I just want to run that script with the key.
Thank you!
I've looked through the many included examples that come with Core and I'm fairly certain I'm over complicating things. My ESP8266 automatically connects to my WiFi without issue. Now, all I want it to do is send one command.
Background:
I have hosted a PHP script that when ran with an API key will change a field in a database from 0 to 1. It is structured like http://website.com/api/index.php?key=123456789
How can I tell my ESP8266 to "go" to that URL? I don't care about any return or receiving of data, I just want to run that script with the key.
Thank you!