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

55 Commits

Author SHA1 Message Date
bdc5281733 Add new del API for HTTP DELETE method 2016-06-22 12:16:12 -04:00
c3023b25ee 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.
2016-06-22 12:10:47 -04:00
4ab54b0a1a Merge pull request #1 from sandeepmistry/master
Various updates
2016-06-21 21:36:50 +02:00
248841e827 Add .gitignore 2016-06-21 14:11:39 -04:00
fc3e6c6fe7 Initial port of examples from RestClient 2016-06-21 14:10:43 -04:00
94a8723420 Make WiFiClient and HttpClient global var in example 2016-06-17 17:29:47 -04:00
9f0078440f Move new API definitions down a bit in header 2016-06-17 16:50:43 -04:00
8012c8dace Add noDefaultRequestHeaders API to turn off sending default headers 2016-06-17 16:49:52 -04:00
0bcba913fd Move storing of initialState in startRequest to the start 2016-06-17 16:38:09 -04:00
70dc5ee44e Remove unimplemented finishRequest from header 2016-06-17 16:37:32 -04:00
5df9084d8e Correct some warnings 2016-06-17 15:34:49 -04:00
f12a797fb3 Add connectionKeepAlive to keywords.txt and add comment for it 2016-06-17 15:20:16 -04:00
91ea1fd8fa Remove installation instructions, update dependencies 2016-06-17 15:10:32 -04:00
c5484daee9 Update keywords.txt for new API's 2016-06-17 15:08:11 -04:00
343a417d1b Update header comment 2016-06-17 14:59:37 -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
bfedff87c1 Add connection keep alive support 2016-06-17 14:18:11 -04:00
33804d4534 Add support for String parameters to sendHeader and sendHeader 2016-06-17 12:55:17 -04:00
9ab55ef6e2 New API's to read header name and value as String's 2016-06-17 12:48:49 -04:00
625154754a Remove unused code 2016-06-17 11:09:37 -04:00
777b561cc5 Make white space consistent 2016-06-17 11:09:14 -04:00
3beefd981a Add support for String parameter types for host and URL path 2016-06-17 11:01:38 -04:00
0030d41287 Make server name/address and port constructor arguments 2016-06-17 10:56:27 -04:00
e3a6c20cd9 Remove proxy support (for now) 2016-06-17 10:13:56 -04:00
ad9bd94136 Wrap proxy member var declarations in #ifdef 2016-06-17 10:02:32 -04:00
b72b7056a9 Update example to use WiFi101 2016-06-17 09:41:12 -04:00
e057c073d9 Add ArduinoHttpClient.h 2016-06-17 09:32:05 -04:00
bb9bd9b422 Rename to ArduinoHttpClient, and other metadata updates 2016-06-17 09:31:49 -04:00
4a2222d210 Changes so this can be added to the Arduino 1.5+ library manager 2015-07-03 14:59:41 +01:00
4bb288dd86 Fixes issue #10 where the library would crash on Intel Galileo and Edison. 2015-05-05 22:56:12 +01:00
522108f64e Added sending "Connection: close" header to fix hang when talking to some servers (first spotted with Xively's servers) 2013-11-24 21:39:54 +00:00
53cc49f1c8 Reworked to trim down the code size of sketches using HttpClient 2013-11-24 21:39:10 +00:00
fa50bfdbdb Installation instructions updated to use releases area 2013-11-23 12:28:37 +00: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
c0ab829395 Merge branch 'master' of github.com:amcewen/HttpClient 2013-11-23 11:35:52 +00:00
881fd8f12f Moved files into an HttpClient subdirectory for easier installation via the Arduino IDE 2013-11-23 11:35:05 +00:00
476406b1bc Reworked the explanation to use markdown, for prettier formatting 2013-11-23 11:31:26 +00:00
4076ba18ad Updated README with new installation instructions 2013-11-23 11:24:19 +00:00
ce4d50b898 Merge pull request #3 from johnmckerrell/master
Connected bug
2013-03-22 09:48:15 -07:00
cc55357e77 Making http response timeout mutable 2012-11-02 19:25:05 +00:00
4eb25a73ff Actually return the connected status :) 2012-11-01 16:23:12 +00:00
fc72d823a7 Merge pull request #1 from johnmckerrell/master
Fixing bug in HttpClient Host Header when the port isn't the default
2012-09-28 10:12:32 -07:00
8bb4f74fba Adding port number to host header if != 80. 2012-09-15 10:59:09 +01:00
ea1618be0e Reworked HttpClient::read() so it doesn't hit the bug in WiFiClient::read(...) (the mulit-byte version) 2012-09-03 18:28:59 +01:00
8bca4a37d2 Fixed bug introduced when I disabled the proxy support, so it now actually /works/ for doing HTTP requests... 2012-08-17 13:02:28 +01:00
1cc31765ff Update keywords for the renamed eof -> completed 2012-08-17 13:01:59 +01:00
c1405676f4 Disabled proxy capability as it introduced a dependency on Ethernet, which meant that it didn't work properly with a WiFi shield 2012-08-13 17:07:57 +01: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