1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

107 Commits

Author SHA1 Message Date
Fabian Desoye
3fc3e9a99d Added PUT Request to HTTP Client (#2310)
* Added PUT Request to HTTP Client

* Replaced Tabstops with spaces
2016-07-26 18:23:38 +08:00
Ivan Grokhotkov
dd81336b79 ESP8266HTTPClient: fix duplicate Content-Length headers (#1902) 2016-06-03 16:11:44 +08:00
Ivan Grokhotkov
a26ec346b3 Merge pull request #2057 from scottfitzenrider/base64Authorization-strip-newlines
Update ESP8266HTTPClient.cpp
2016-06-01 11:04:43 +08:00
Hideki Shiro
2df4a0b426 allow HTTP header value without LWS. 2016-05-27 00:42:47 +09:00
scottfitzenrider
0ac37810ca Update ESP8266HTTPClient.cpp
The libb64 base64 library adds newlines to the base64 encoding of the encoded _base64Authorization String if the encoded string every 72 characters.  This causes problems with the Authorization: Basic http header when the username and password are long.  The change strips out newlines from _base64Authorization right before the header is sent.
2016-05-25 15:07:14 -04:00
b-pas
74bd4f9200 include non-standard ports in Host: header 2016-05-07 10:56:24 -04:00
Ivan Grokhotkov
334837533f Add missing virtual destructor in TransportTraits (#1944) 2016-04-26 16:00:46 +08:00
Ivan Grokhotkov
76e322f2e7 Fix handling of chunked transfer encoding (#1975) 2016-04-26 15:58:12 +08:00
Ivan Grokhotkov
edaae2c194 HTTPClient: fix default port not being set 2016-04-25 21:03:39 +08:00
Ivan Grokhotkov
81d3bb3e3a Return error when HTTPClient::begin is called with HTTPS URL without certificate fingerprint (#1941) 2016-04-22 19:21:57 +08:00
Ivan Grokhotkov
84daa1a108 Add explicit cast (#1903) 2016-04-13 14:03:11 +03:00
Ivan Grokhotkov
46380003d5 Fix compilation when debug is enabled 2016-04-13 14:02:10 +03:00
Ivan Grokhotkov
a455f22587 HTTPClient, HTTPUpdate: save some RAM by moving strings into flash 2016-04-09 12:46:29 +03:00
Ivan Grokhotkov
bf7f33d918 Fix code formatting 2016-04-09 12:46:29 +03:00
Ivan Grokhotkov
bbc5e9ba01 Update library versions 2016-04-09 12:46:29 +03:00
Ivan Grokhotkov
cae4039225 HTTPClient: decouple transport layer handling 2016-04-09 12:46:29 +03:00
Ivan Grokhotkov
93d57fabe2 Remove overloads of HTTPClient::begin which take const char*
Since the data is stored as Strings internally, these methods do not serve as an optimisation
2016-04-09 12:46:29 +03:00
Markus Sattler
1060db94c2 handle possible dead lock in HTTP client see: #1520 2016-01-29 14:02:09 +01:00
Markus Sattler
27f1a63170 allow String for payload in HTTPclient sendRequest 2016-01-29 13:19:56 +01:00
Markus Sattler
4247b646bb Merge remote-tracking branch 'remotes/esp8266/master' 2016-01-16 14:01:19 +01:00
Markus Sattler
fb55e91118 fix #1368 2016-01-16 14:00:56 +01:00
Joost Jager
3d4e4f8cda Merge branch 'master' into my_changes_on_2.1.0-rc1 2016-01-12 21:26:09 +01:00
Joost Jager
ae1409125f Accept-Encoding missing comma added 2016-01-12 21:25:27 +01:00
Damian Peckett
ec1c90c545 Fix typo causing crash on missing uri scheme 2016-01-10 14:10:29 +11:00
Markus Sattler
2b23b005aa allow control of enabling debug and debug level from IDE 2016-01-02 12:25:39 +01:00
Markus Sattler
9b06b889c9 disable HTTP client debug 2015-12-31 17:10:38 +01:00
Markus Sattler
1ab74c1c76 add missing return HTTPC_ERROR_STREAM_WRITE 2015-12-31 15:02:53 +01:00
Markus Sattler
ef748e369a allow downgrade to HTTP 1.0
use HTTP/1.0 for update since the update handler not support any transfer Encoding
2015-12-31 14:02:00 +01:00
Markus Sattler
b828f34348 some docu 2015-12-31 12:16:22 +01:00
Markus Sattler
53287f4573 rework sendRequest stream too 2015-12-31 12:14:46 +01:00
Markus Sattler
bd7d915bcd rework error handling and detection
add retry for short write
remove compiler warnings
2015-12-31 12:00:26 +01:00
Markus Sattler
288e879a13 disable debug 2015-12-30 21:21:30 +01:00
Markus Sattler
cc0037682b add CHUNKED encoding support too http client (#1324)
HTTP Client - fix examples
increase default timeout to 5000ms
2015-12-30 21:20:43 +01:00
Denver Abrey
80857e3f87 Also set timeout on already existing connections 2015-12-27 20:02:08 +02:00
Denver Abrey
d1a6b32133 Allow setting TCP timeout 2015-12-27 19:45:17 +02:00
George Talusan
1e264047f9 better bytesWritten accounting in sendRequest and writeToStream 2015-12-23 11:29:59 -05:00
Markus Sattler
467da7c50f better error handling 2015-12-23 12:54:44 +01:00
Markus Sattler
b845d03b89 Merge remote-tracking branch 'remotes/esp8266/master' into httpClient 2015-12-23 12:50:19 +01:00
Ivan Grokhotkov
1c7b81660b Merge pull request #1289 from gtalusan/short_writes
handle short writes
2015-12-23 10:15:57 +03:00
Ivan Grokhotkov
9a1b9058e3 Merge pull request #1287 from gtalusan/master
fix debug message in sendRequest
2015-12-23 10:15:09 +03:00
George Talusan
70c85c0901 handle short writes 2015-12-22 21:31:30 -05:00
George Talusan
742caa10ec fix debug build 2015-12-22 20:29:19 -05:00
George Talusan
35d2e49c3b fix debug message in sendRequest 2015-12-22 20:13:35 -05:00
Markus Sattler
d77e605461 http client allow slow streams for sendRequest
fix part of #1274
2015-12-22 10:43:12 +01:00
Markus Sattler
28dd31a80f add advanced error handling for HTTP update
see: #1111
2015-12-16 23:05:23 +01:00
Markus Sattler
b9d0807a56 only malloc needed ram if we know the response size and its less then 1460 2015-12-16 00:48:35 +01:00
Markus Sattler
b8769bf5eb HTTP Client move buffer (1460 Byte) from stack to heap. 2015-12-16 00:36:11 +01:00
Markus Sattler
0a4da83243 HTTPClient add Authorization example 2015-12-09 14:27:51 +01:00
Markus Sattler
85341ff25a HTTPClient phasing username + password from url 2015-12-09 14:19:28 +01:00
Markus Sattler
a9ce1b4f2e add Authorization support for HTTP client 2015-12-09 13:51:55 +01:00