1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-06-11 17:08:08 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
889d7b35d9 St update 2017-09-14 16:27:32 +02:00
94a8723420 Make WiFiClient and HttpClient global var in example 2016-06-17 17:29:47 -04:00
7ee216f4aa Use http.endOfBodyReached() in example instead of tracking body len 2016-06-17 14:58:17 -04:00
255118660b Make skipResponseHeaders() optional, if contentLength() is called first 2016-06-17 14:55:03 -04:00
4b6f4dfa29 Add check for bodyLen in read loop 2016-06-17 14:37:51 -04:00
0030d41287 Make server name/address and port constructor arguments 2016-06-17 10:56:27 -04:00
b72b7056a9 Update example to use WiFi101 2016-06-17 09:41:12 -04:00
9fddcdc121 Undo moving files because that wasn't actually causing problems with adding the library via the Arduino IDE - it was a hard-to-notice error about the naming, which sadly means the "Download Zip" button won't ever work directly (at least until Arduino/Processing IDE accepts "-" in library names) 2013-11-23 12:24:11 +00:00
881fd8f12f Moved files into an HttpClient subdirectory for easier installation via the Arduino IDE 2013-11-23 11:35:05 +00:00
44d790b8a6 Updated to new API as discussed on the Arduino Developers mailing list. Part of the process of moving the library to live as one of the core Arduino libraries.
The get/put/post calls have been streamlined to require fewer parameters in the basic case - i.e. you can just call http.get("www.mysite.com", "/somepath") to make a simple request.

The accept header has been removed from the list of possible parameters to get/put/post - if you need to use it then send it manually with sendHeader(...) instead.

You don't need to call finishRequest() after the initial call to get/put/post if you aren't going to send any headers.  However, if you /do/ want to send extra headers then you need to call beginRequest() before the get/put/post and endRequest() at the end of all the sent data (so after the data as well as the headers).  E.g.

	http.beginRequest();
	http.post("www.somesite.com", "/somepath");
	http.sendHeader("Content-Length", strlen(postdata));
	http.print(postdata);
	http.endRequest();
2012-03-30 15:11:13 +01:00
6e8d284c7b Updated to use the new generic Client API (rather than the Ethernet-specific one) and added ability to connect via an HTTP proxy 2011-09-05 16:03:00 +01:00