Advertisement
calebsan

Untitled

Apr 23rd, 2024
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. 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\"}";
  2.  
  3.   // Start the POST request
  4.   HTTPClient http;
  5.   http.begin("http://localhost:8000/api/add");
  6.   http.addHeader("Content-Type", "application/json");
  7.  
  8.   // Send the POST request
  9.   int httpResponseCode = http.POST(payload);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement