/ArduinoHttpClient

Arduino HTTP Client library

Primary LanguageC++

Changes made to forked library

[Added function to send custom header when connecting websocket]

wsClient.setCustomHeader("Origin: http://myserver.com/");
wsClient.begin("/path");

ArduinoHttpClient

ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.

Derived from Adrian McEwen's HttpClient library

Dependencies

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.