1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-04-19 21:22:15 +03:00

8 Commits

Author SHA1 Message Date
John McKerrell
8bb4f74fba Adding port number to host header if != 80. 2012-09-15 10:59:09 +01:00
amcewen
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
amcewen
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
amcewen
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
amcewen
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
amcewen
222f718705 Updates to work with proper release of Arduino 1.0 2011-11-30 21:39:43 +00:00
amcewen
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
amcewen
6e632624bf Initial version on github. Updates old version which lived on googlecode to use new DHCP and DNS API in the Arduino Ethernet library 2011-05-14 14:42:26 +01:00