arduino-pico/libraries/HTTPClient/examples
Earle F. Philhower, III f4de3cbd6d
Rewrite HTTPClient chunked transfer-encoding (#3034)
* Rewrite HTTPClient chunked transfer-encoding

Fixes #3029

The chunked decoder seems to have had some race conditions resulting in
lost data.

The HTTPClient::getStreamPtr returned the raw WiFiClient which included
all of the chunked block size markers, requiring the user to manually
parse the chunked encoding.

Remove the existing chunked handling, add a HTTPStream as a WiFiClient
subclass.  The HTTPClient will return this HTTPStream which will always
properly cut out chunk markers when present (and pass things raw for
non-encoded streams).  Use this new HTTPStream class to replace the
existing handling in HTTPClient

Update the fingerprint in the StreamHTTPSClient example because their
cert was updated.

* Astyle

* Add block write passthru

* Add other WiFiClient passthru calls
2025-07-11 12:12:46 -07:00
..
Authorization Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
BasicHttpClient Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
BasicHttpsClient Support wired network interfaces (W5500, W5100, ENC28J60) (#1703) 2023-09-14 19:04:39 -07:00
BasicHttpsClient-Hard Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
ChunkedClient Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
DigestAuthorization Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
PostHttpClient Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
ReuseConnectionV2 Add HTTPClient, ported from the ESP8266 (#784) 2022-08-21 12:49:06 -07:00
StreamHttpsClient Rewrite HTTPClient chunked transfer-encoding (#3034) 2025-07-11 12:12:46 -07:00