mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-22 19:22:50 +03:00
On every push or pull request that affects library source or example files, and periodically, compile all example sketches for the specified boards.
30 lines
1.8 KiB
Markdown
30 lines
1.8 KiB
Markdown
# ArduinoHttpClient
|
|
|
|
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/check-arduino.yml)
|
|
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml)
|
|
[](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml)
|
|
|
|
ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino.
|
|
|
|
Derived from [Adrian McEwen's HttpClient library](https://github.com/amcewen/HttpClient)
|
|
|
|
## Dependencies
|
|
|
|
- Requires a networking hardware and a library that provides transport specific `Client` instance, such as:
|
|
- [WiFiNINA](https://github.com/arduino-libraries/WiFiNINA)
|
|
- [WiFi101](https://github.com/arduino-libraries/WiFi101)
|
|
- [Ethernet](https://github.com/arduino-libraries/Ethernet)
|
|
- [MKRGSM](https://github.com/arduino-libraries/MKRGSM)
|
|
- [MKRNB](https://github.com/arduino-libraries/MKRNB)
|
|
- [WiFi](https://github.com/arduino-libraries/WiFi)
|
|
- [GSM](https://github.com/arduino-libraries/GSM)
|
|
|
|
## 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.
|
|
|