mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-06-30 18:21:49 +03:00
8566fb4cc0098ef2c91f080f5eb877eefa0e23b6
Using WebSocketClient::begin I got into problems where `status = responseStatusCode();` would be trying to read the HTTP header, but because both HttpClient and WebSocketClient have a read function, the read from WebSocketClient was used, which returns a bunch of gibberish. This caused the WebSocket to think that the connection was not successfully upgraded.
ArduinoHttpClient
ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.
Derived from Adrian McEwen's HttpClient library
Dependencies
- Requires a networking hardware and a library that provides transport specific
Client
instance, such as:
Usage
In normal usage, handles the outgoing request and Host header. The returned status code is parsed for you, as is the Content-Length header (if present).
Because it expects an object of type Client, you can use it with any of the networking classes that derive from that. Which means it will work with WiFiClient, EthernetClient and GSMClient.
See the examples for more detail on how the library is used.
Description
Languages
C++
75%
C
25%