1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-06-13 04:21:30 +03:00

Add optional content type, content length and body parameters to post, put, and startRequest

Also, flush client RX data in start request, if state is ready body.
This commit is contained in:
Sandeep Mistry
2016-06-22 12:10:47 -04:00
parent 4ab54b0a1a
commit c3023b25ee
7 changed files with 134 additions and 53 deletions

View File

@ -63,9 +63,7 @@ void loop() {
// send the GET request
Serial.println("making GET request");
client.beginRequest();
client.get(path);
client.endRequest();
// read the status code of the response
statusCode = client.responseStatusCode();