HTTP Request library for ESP8266
This is a port of CanTireInnovations/arduino-restclient to work with https
All methods return an HTTP status code or 0 if there was an error.
Start making requests!
int statusCode = client.get("/"));Pass in a string by reference for the response:
String response = "";
int statusCode = client.get("/", &response);
String response = "";
int statusCode = client.post("/", &response);
statusCode = client.post("/", "foo=bar");
response = "";
statusCode = client.post("/", "foo=bar", &response);
String response = "";
int statusCode = client.put("/", &response);
statusCode = client.put("/", "foo=bar");
response = "";
statusCode = client.put("/", "foo=bar", &response);
String response = "";
int statusCode = client.del("/", &response);
If you're having trouble, you can always open WiFiRestClient.cpp and throw at the top:
#define HTTP_DEBUGEverything happening in the client will get printed to the Serial port.
csquared For the original Arduino library