Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String payload = "{\"peewee_count\":5,\"pullet_count\":10,\"small_count\":8,\"medium_count\":15,\"large_count\":20,\"extra_large_count\":12,\"jumbo_count\":3,\"crack_count\":0\"}";
- // Start the POST request
- HTTPClient http;
- http.begin("http://localhost:8000/api/add");
- http.addHeader("Content-Type", "application/json");
- // Send the POST request
- int httpResponseCode = http.POST(payload);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement